-
Notifications
You must be signed in to change notification settings - Fork 0
/
slides.tex
680 lines (626 loc) · 23.3 KB
/
slides.tex
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
\documentclass[t,10pt]{beamer}
%\includeonlyframes{testing}
\usepackage{tikz,pgfplots,pgfplotstable,pgfcalendar}
%\pgfplotstableset{col sep=comma}
\usetikzlibrary{arrows.meta}
\tikzset{>={Latex[width=7pt,length=7pt]}}
\pgfplotsset{compat=1.14}
\usepgfplotslibrary{dateplot}
\usepgfplotslibrary{units}
\usepgfplotslibrary{colormaps}
\usetikzlibrary{pgfplots.colormaps}
\usepackage{fancybox}
\usepackage{chronology}
\tikzset{eventlabel/.append style={rotate=15}}
%\tikzset{every picture/.style={opacity=0.5}}
%\tikzset{chronevent/.append style={fill=darkred}}
%\usepackage{verbatim}
\usepackage{ifthen}
\usetheme{CambridgeUS}
\usefonttheme{serif}
\title{A look At The Elephant's Tail}
\author{Gregory Stark}
\date{September 14th 2016}
%\DefineVerbatimEnvironment{GitCommit}{Verbatim}{fontfamily=tt,fontsize=\small}
%\newenvironment{GitCommit}{\begin{semiverbatim}}{\end{semiverbatim}}
\newcommand{\myevent}[2]{%
\ifthenelse{\NOT\equal{\subsecname}{}\AND\equal{\subsecname}{#2}}%
{\tikzset{chronevent/.append style={fill=darkred}}}%
{\tikzset{chronevent/.append style={fill=black}}}%
\event{#1}{#2}%
}
\setbeamertemplate{footline}{
\begin{chronology}[2]{1995}{2017}{\textwidth}[0.9\textwidth]
\myevent{\decimaldate{1}{5}{1995}}{}%Postgres95 0.1}
\myevent{\decimaldate{25}{5}{1995}}{}%Postgres95 0.2}
\myevent{\decimaldate{21}{7}{1995}}{}%Postgres95 0.3}
\myevent{\decimaldate{5}{9}{1995}}{1.0}
\myevent{\decimaldate{23}{2}{1996}}{}%Postgres95 1.01}
\myevent{\decimaldate{1}{8}{1996}}{}%Postgres95 1.02}
\myevent{\decimaldate{4}{11}{1996}}{}%Postgres95 1.09}
\myevent{\decimaldate{29}{1}{1997}}{6.0}
\myevent{\decimaldate{8}{6}{1997}}{}%6.1}
\myevent{\decimaldate{2}{10}{1997}}{6.2}
\myevent{\decimaldate{1}{3}{1998}}{6.3}
\myevent{\decimaldate{30}{10}{1998}}{6.4}
\myevent{\decimaldate{9}{6}{1999}}{6.5}
\myevent{\decimaldate{8}{5}{2000}}{7.0}
\myevent{\decimaldate{13}{4}{2001}}{7.1}
\myevent{\decimaldate{4}{2}{2002}}{7.2}
\myevent{\decimaldate{27}{11}{2002}}{7.3}
\myevent{\decimaldate{17}{11}{2003}}{7.4}
\myevent{\decimaldate{19}{1}{2005}}{8.0}
\myevent{\decimaldate{8}{11}{2005}}{8.1}
\myevent{\decimaldate{5}{12}{2006}}{8.2}
\myevent{\decimaldate{4}{2}{2008}}{8.3}
\myevent{\decimaldate{1}{7}{2009}}{8.4}
\myevent{\decimaldate{20}{9}{2010}}{9.0}
\myevent{\decimaldate{12}{9}{2011}}{9.1}
\myevent{\decimaldate{10}{9}{2012}}{9.2}
\myevent{\decimaldate{9}{9}{2013}}{9.3}
\myevent{\decimaldate{18}{12}{2014}}{9.4}
\myevent{\decimaldate{7}{1}{2016}}{9.5}
\end{chronology}
}{}
\setbeamerfont{quotation}{size=\scriptsize,shape=\upshape,family=\ttfamily}
\begin{document}
\begin{frame}[plain]
\titlepage
\end{frame}
\section{Why}
\begin{frame}{Why}
\begin{itemize}%[<+-| alert@+>]
\item Understanding ``who'', ``when'', and ``why'' for the decisions made
over the past 20 years helps understand how Postgres behaves the way
it does today including the features and limitations of the current
code.
\item Many of the changes fixed real problems that users faced with,
and examining past problems helps us understand how to recognize and
deal with problems in the future
\item Put yourself in the shoes of an admin considering these upgrades
and consider not just the risks of upgrading but the risks of
\textbf{not} upgrading.
\end{itemize}
\end{frame}
%XYZZY% \section{In the beginning}
%XYZZY%
%XYZZY% \begin{frame}{In the beginning}
%XYZZY% \includegraphics[width=\textwidth,height=\textheight,keepaspectratio=true]{assets/Get_to_know_PostgreSQL-6-team}
%XYZZY% \end{frame}
%XYZZY%
%XYZZY% \begin{frame}{Postgres95 -- First Public Release}
%XYZZY% \begin{itemize}%[<+-| alert@+>]
%XYZZY% \item Tables limited to 1GB
%XYZZY% \item Sorts were always on disk and always generated a new data file
%XYZZY% for output. They always required three times as much disk space as
%XYZZY% data being sorted
%XYZZY% \end{itemize}
%XYZZY% \end{frame}
%XYZZY%
%XYZZY% \begin{frame}[fragile]{Postgres 6.2 -- Use quicksort when data fits in memory}
%XYZZY% \begin{columns}
%XYZZY% \begin{column}{.25\textwidth}
%XYZZY% \includegraphics[width=\textwidth,height=\textheight,keepaspectratio=true]{assets/Get_to_know_PostgreSQL-6-team}
%XYZZY% \end{column}
%XYZZY% \begin{column}{.75\textwidth}
%XYZZY% \begin{semiverbatim}
%XYZZY% \tiny
%XYZZY% commit 712ea2507ef7f3ea4a7149962c85de0b35245a64
%XYZZY% Author: Vadim B. Mikheev <[email protected]>
%XYZZY% Date: Thu Sep 18 05:37:31 1997 +0000
%XYZZY%
%XYZZY% 1. Use qsort for first run
%XYZZY% 2. Limit number of tuples in leftist trees:
%XYZZY% - put one tuple from current tree to disk if limit reached;
%XYZZY% - end run creation if limit reached by nextrun.
%XYZZY% 3. Avoid mergeruns() if first run is single one!
%XYZZY% \end{semiverbatim}
%XYZZY% \end{column}
%XYZZY% \end{columns}
%XYZZY% \end{frame}
%XYZZY%
%XYZZY%
%XYZZY% %\begin{frame}{PGFPlots Bar Plot Example}
%XYZZY% % \begin{figure}[h]
%XYZZY% % \centering
%XYZZY% % \begin{tikzpicture}
%XYZZY% % \begin{axis}[
%XYZZY% % ybar,
%XYZZY% % enlarge x limits=0.15,
%XYZZY% % legend style={at={(-.5,0.5)},
%XYZZY% % anchor=north,legend columns=1},
%XYZZY% % ylabel={\% students},
%XYZZY% % symbolic x coords={A, B, C, D, E, F, DNF},
%XYZZY% % xtick=data,
%XYZZY% % bar width=2mm,
%XYZZY% % width=0.7\textwidth
%XYZZY% % ]
%XYZZY% % \legend{2012, 2013};
%XYZZY% % % Spring 2012 results
%XYZZY% % \addplot[fill=gray] coordinates {(A,0) (B,0) (C,3.85) (D,23.07) (E,43.31) (F,30.77) (DNF,0.00)};
%XYZZY% % % Spring 2013 results
%XYZZY% % \addplot[fill=blue] coordinates {(A,0) (B,3.70) (C,22.22) (D,22.22) (E,40.74) (F,3.70) (DNF,7.41)};
%XYZZY% % \end{axis}
%XYZZY% % \end{tikzpicture}
%XYZZY% % \caption{Consistent improvement over the last year}
%XYZZY% % \end{figure}
%XYZZY% %\end{frame}
%XYZZY%
\pgfplotstableread[col sep=comma,header=true]{pivot-table.csv}\spreadsheet
\section{Experiments}
\subsection{}
\begin{frame}{Performance over time for various number of clients}
\begin{tikzpicture}
\begin{axis}[
height=.80\textheight,
width=.90\textwidth,
xlabel=GIT Commit Date,
ylabel=Transactions/s,
grid=major,
date coordinates in=x,
mark size=0.25pt,
scaled ticks=false,
colormap name=hot,
cycle list={[colors of colormap={0,70,...,1000}]},
enlargelimits=false,
ymin=0,ymax=100000,
yticklabel style={
/pgf/number format/fixed,
font=\tiny,
},
xtick={2000-01-01,2002-01-01,2004-01-01,2006-01-01,2008-01-01,2010-01-01,2012-01-01,2014-01-01,2016-01-01},
xticklabel style={
rotate=-15,
anchor=north west,
%draw=black,
font=\tiny,
},
xticklabel={\year},
xmin=2002-01-01,
xmax=2017-01-01,
reverse legend,
legend pos=north west,
%legend columns=8, transpose legend,
legend style={font=\tiny, line width=2pt, draw=none, row sep=-1pt},
]
\pgfplotstableforeachcolumn\spreadsheet\as\col{%
\ifnum\pgfplotstablecol>0
\addplot table[col sep=comma,header=true,x index=0,y=\col]\spreadsheet;
\addlegendentryexpanded{\col}
\fi
}
\end{axis}
\end{tikzpicture}
\end{frame}
\pgfplotstabletranspose[colnames from=date]\transposed\spreadsheet
%\begin{frame}{Transposed Table}
%\tiny
%\pgfplotstabletypeset[]\transposed
%\end{frame}
%\pgfplotstablegetcolsof{\transposed}
% colorbar,
% colorbar style={
% ytick={0,.08,...,.96},
% yticklabels={a,b,c,d,e,f,g,h,i,j,k,l},
% },
\begin{frame}{Performance over number of clients for various releases}
\begin{tikzpicture}
\begin{axis}[
height=.80\textheight,
width=.80\textwidth,
xlabel=Clients,
ylabel=Transactions/s,
grid=major,
mark size=0.25pt,
scaled ticks=false,
colormap name=hot,
% cycle list={[colors of colormap={1000,993.75,...,0}]},
cycle list={[colors of colormap={0,5,...,1000}]},
% cycle list={[colors of colormap={0,30,...,1000}]},
colorbar,
colorbar style={
ytick={0,.15,.3,.5,.6,.8,.94},
yticklabels={7.2,8.0,8.2,8.4,9.0,9.2,9.5},
},
enlargelimits=false,
ymin=0,ymax=100000,
yticklabel style={
/pgf/number format/fixed,
font=\tiny,
},
xmin=0,xmax=96,
xtick={0,8,...,96},
xticklabel style={
font=\tiny,
},
]
\pgfplotstableforeachcolumn\transposed\as\col{%
\ifnum\pgfplotstablecol>0
\addplot table[col sep=comma,header=true,x index=0,y=\col]\transposed;
\fi
}
\end{axis}
\end{tikzpicture}
\pgfplotstablegetcolsof{\transposed}
%\scriptsize There are \pgfmathresult\ data series here, sorry if it's hard to interpret.
\end{frame}
%\begin{frame}{Line Chart of pivot table}
% Here is a chart:
% \pgfplotstabletranspose[colnames from={0}]\datatable\spreadsheet
%
% \begin{tikzpicture}
% \begin{axis}[
% height=.70\textheight,
% width=.70\textwidth,
% title=Performance over number of clients for various releases,
% xlabel=Number of Clients,
% ylabel=Transactions/s,
% grid=major,
% mark size=0.25pt,
% scaled ticks=false,
% colormap name=viridis,
% cycle list={[colors of colormap={0,80,...,960}]},
% yticklabel style={
% /pgf/number format/fixed,
% font=\tiny,
% },
% xticklabel style={
% font=\tiny,
% },
% xmin=0,
% xmax=96]
% %\pgfplotstableforeachcolumnhtablei\as{h\macroi}{hcodei}
% \addplot table[col sep=comma,header=true,x index=0,y=4] {\datatable}
% \end{axis}
%\end{tikzpicture}
%
%There was a chart
%\end{frame}
\section{In The Beginning}
\subsection{POSTGRES Project at Berkeley}
\begin{frame}[label=testing]{POSTGRES project at Berkeley}
\begin{columns}[T]
\begin{column}{0.3\textwidth}
\includegraphics[width=\textwidth,keepaspectratio=true]{assets/stonebraker-1995-berkeley.png}
\end{column}
\begin{column}{0.7\textwidth}
\begin{quotation}
\setlength{\parskip}{1em}
Dr. Stonebraker is Professor of Electrical Engineering and Computer
Sciences at the University of California at Berkeley, where he joined
the faculty in 1971. He is widely recognized as one of the world's
foremost experts in database technology and is noted for his insight
in operating systems and expert systems.
Dr. Stonebraker founded Ingres Corp. in 1980 and served on the
company's board of directors until 1993... INGRES, the company's
primary product, was a commercialization of Dr. Stonebraker's INGRES
research project into relational database management systems (RDBMS)
at Berkeley...
\alert<2>{
More recently, Dr. Stonebraker has managed another research project
known as POSTGRES, one of the most advanced such projects ever
undertaken on the Berkeley campus.
}
\tiny--- http://s2k-ftp.cs.berkeley.edu/nasa\_e2e/mike.html
\end{quotation}
\end{column}
\end{columns}
\end{frame}
\subsection{1.0}
\begin{frame}{Postgres95 1.0}
\begin{itemize}%[<+-| alert@+>]
\item \alert<2>{The copyright of Postgres 1.0 has been loosened to
be freely modifiable and modifiable for any purpose. Please read
the COPYRIGHT file. Thanks to Professor Michael Stonebraker for
making this possible.}
\item pg\_dump - a utility for dumping out a postgres database into
a script file containing query commands. The script files are in
an ASCII format and can be used to reconstruct the database, even
on other machines and other architectures. (Also good for
converting a Postgres 4.2 database to Postgres95 database.)
\item The SQL statement for creating a database is `CREATE DATABASE' instead
of `CREATEDB'. Similarly, dropping a database is `DROP DATABASE' instead
of `DESTROYDB'. However, the names of the executables `createdb' and
`destroydb' remain the same.
\end{itemize}
\end{frame}
\subsection{6.0}
\begin{frame}{PostgreSQL 6.0}
\begin{columns}[T]
\begin{column}{0.3\textwidth}
\includegraphics[width=1.1\textwidth,keepaspectratio=true]{assets/Get_to_know_PostgreSQL-6-team}
\end{column}
\begin{column}{0.7\textwidth}
\begin{itemize}%[<+-| alert@+>]
\item Name change from Postgres95 to PostgreSQL
\end{itemize}
\end{column}
\end{columns}
\end{frame}
\subsection{6.2}
\begin{frame}{PostgreSQL 6.2}
\begin{columns}[T]
\begin{column}{0.3\textwidth}
\includegraphics[width=1.1\textwidth,keepaspectratio=true]{assets/Get_to_know_PostgreSQL-6-team}
\end{column}
\begin{column}{0.7\textwidth}
\begin{itemize}%[<+-| alert@+>]
\item Triggers implemented with CREATE TRIGGER
\item SPI (Server Programming Interface) allows execution of queries inside C-functions
\end{itemize}
\end{column}
\end{columns}
\end{frame}
\subsection{6.3}
\begin{frame}{PostgreSQL 6.3}
\begin{columns}[T]
\begin{column}{0.3\textwidth}
\includegraphics[width=1.1\textwidth,keepaspectratio=true]{assets/Get_to_know_PostgreSQL-6-team}
\end{column}
\begin{column}{0.7\textwidth}
\begin{itemize}%[<+-| alert@+>]
\item Many new SQL features, including full SQL92 subselect capability
\item New SQL statement CREATE PROCEDURAL LANGUAGE
\item We also have real deadlock detection code. No more sixty-second timeouts.
\end{itemize}
\end{column}
\end{columns}
\end{frame}
\subsection{6.4}
\begin{frame}{PostgreSQL 6.4}
\begin{columns}[T]
\begin{column}{0.3\textwidth}
\includegraphics[width=1.1\textwidth,keepaspectratio=true]{assets/history-007.png}
\end{column}
\begin{column}{0.7\textwidth}
\begin{itemize}%[<+-| alert@+>]
\item Views and rules are now functional thanks to extensive new code in the rewrite rules system
\item A second procedural language, PL/pgSQL, to go with the original PL/pgTCL procedural language
\item Multiple-byte character set support
\end{itemize}
Many new developers, Oleg Bartunov, Peter Eisentraut, Tatsuo Ishii, Magnus Hagandar, Tom Lane.
The release notes for 6.4 include over 180 items!
\end{column}
\end{columns}
\end{frame}
\subsection{6.5}
\begin{frame}{PostgreSQL 6.5}
\begin{columns}[T]
\begin{column}{0.3\textwidth}
\includegraphics[width=1.1\textwidth,keepaspectratio=true]{assets/history-007.png}
\end{column}
\begin{column}{0.7\textwidth}
\begin{itemize}%[<+-| alert@+>]
\item Multiversion concurrency control(MVCC)
\item Hot backups from pg\_dump
\end{itemize}
\end{column}
\end{columns}
\end{frame}
\section{Early production use}
\subsection{7.0}
\begin{frame}{Early production use}
Major features are still lacking but it's reliable enough for users
to start running in production.
Features are added at a furious pace but you can clearly see the
divergence from MySQL and others where Postgres adds traditional
RDBMS management features and extensibility but focuses less on
overhead and resource usage.
TODO: add some relevant graphic
\end{frame}
\end{frame}
\subsection{7.0}
\begin{frame}{PostgreSQL 7.0}
\begin{itemize}%[<+-| alert@+>]
\item Foreign keys are now implemented... Many users have been asking for this feature, and we are pleased to offer it.
\item SQL92 join syntax is now supported, though only as INNER JOIN for this release.
\end{itemize}
\end{frame}
\subsection{7.1}
\begin{frame}{PostgreSQL 7.1}
\begin{itemize}%[<+-| alert@+>]
\item Write-ahead Log (WAL)
\item TOAST
\item Outer Joins
\item \alert<2>{New C function manager adds support for NULLs and 64-bit CPUs (i.e. Alpha)}
\end{itemize}
\end{frame}
\subsection{7.2}
\begin{frame}{PostgreSQL 7.2}
\begin{itemize}%[<+-| alert@+>]
\item Vacuuming no longer locks tables, thus allowing normal user access during the vacuum.
\item There is no longer a problem with installations that exceed four billion transactions.
\item The system now computes histogram column statistics during ANALYZE, allowing much better optimizer choices.
\item Program and library messages can now be displayed in several languages.
\end{itemize}
\end{frame}
\subsection{7.3}
\begin{frame}{PostgreSQL 7.3}
\begin{itemize}%[<+-| alert@+>]
\item Functions and procedural languages now have privileges, and functions can be defined to run with the privileges of their creator.
\item Prepared queries
\item Object dependencies; DROP statements now take either CASCADE or RESTRICT to control whether dependent objects are also dropped.
\item ALTER TABLE ... DROP COLUMN
\item Both multibyte and locale support are now always enabled.
\end{itemize}
\end{frame}
\subsection{7.4}
\begin{frame}{PostgreSQL 7.4}
\begin{itemize}%[<+-| alert@+>]
\item New client-to-server protocol
\item New autovacuum tool
\item IN / NOT IN subqueries are now much more efficient
\item Improved GROUP BY processing by using hash buckets
\end{itemize}
\end{frame}
\section{Scaling up}
\subsection{8.0}
\begin{frame}{Scaling Up}
Users running Postgres in production start running into previously
unseen problems due to their database size, transaction rate, and
24x7 operational needs.
\includegraphics[width=\textwidth,keepaspectratio=true]{assets/exponential-growth.png}
TODO: Need a more relevant graphic
\end{frame}
\begin{frame}{PostgreSQL 8.0}
\begin{itemize}%[<+-| alert@+>]
\item Microsoft Windows Native Server
\item \alert<2>{Hot Backups and Point-In-Time Recovery}
\item Tablespaces
\item Savepoints
\end{itemize}
\end{frame}
\subsection{8.1}
\begin{frame}{PostgreSQL 8.1}
\begin{itemize}%[<+-| alert@+>]
\item Allow index scans to use an intermediate in-memory bitmap (Tom)
\item Add shared row level locks using SELECT ... FOR SHARE (Alvaro)
\item Improve performance for partitioned tables (Simon) (Constraint Exclusion)
\item Skip WAL logging for CREATE TABLE AS / SELECT INTO (Simon)
\end{itemize}
\end{frame}
\subsection{8.2}
\begin{frame}{PostgreSQL Anniversary Meeting 2006}
\includegraphics[width=\textwidth,keepaspectratio=true]{assets/2006-anniversary-group-oleg.jpg}
\end{frame}
\begin{frame}{PostgreSQL 8.2}
\begin{itemize}%[<+-| alert@+>]
\item Index creation without blocking concurrent INSERT/UPDATE/DELETE operations
\item Improved sorting performance with lower memory usage
\item Easier administration of warm standby servers
\end{itemize}
\end{frame}
\subsection{8.3}
\begin{frame}{PostgreSQL 8.3}
\begin{itemize}%[<+-| alert@+>]
\item Using non-persistent transaction IDs for read-only transactions reduces overhead and VACUUM requirements
\item Heap-Only Tuples (HOT) accelerate space reuse for most UPDATEs and DELETEs
\item Checkpoint writes can be spread over a longer time period to smooth the I/O spike during each checkpoint
\item Just-in-time background writer strategy improves disk write efficiency
\item Support multiple concurrent autovacuum processes, and other autovacuum improvements
\end{itemize}
\end{frame}
\begin{frame}{Table Bloat}
\begin{tikzpicture}
\begin{axis}[
height=.75\textheight,
width=0.9\textwidth,
title=Table Bloat over time,
xlabel=Time (hours),
ylabel=Size of pgbench\_accounts Table (kB),
grid=major,
mark size=0,
scaled ticks=false,
xmin=0,ymin=0,
enlargelimits=false,
colormap name=hot,
cycle list={[colors of colormap={0,80,...,960}]},
yticklabel style={
/pgf/number format/fixed,
font=\tiny,
},
xtick distance=6,
minor x tick num=5,
xticklabel style={
/pgf/number format/fixed,
font=\tiny,
},
legend entries={7.3, 7.4, 8.0, 8.1, 8.2, 8.3, 8.4, 9.0, 9.1, 9.2, 9.3, 9.4, 9.5},
]
\addplot table[]{du.out.2008-01-03-REL7_3_21};
\addplot table[]{du.out.2010-10-01-REL7_4_30};
\addplot table[]{du.out.2010-10-01-REL8_0_26};
\addplot table[]{du.out.2010-12-13-REL8_1_23};
\addplot table[]{du.out.2011-12-01-REL8_2_23};
\addplot table[]{du.out.2013-02-04-REL8_3_23};
\addplot table[]{du.out.2014-07-21-REL8_4_22};
\addplot table[]{du.out.2015-10-05-REL9_0_23};
\addplot table[]{du.out.2015-10-05-REL9_1_19};
\addplot table[]{du.out.2015-10-05-REL9_2_14};
\addplot table[]{du.out.2015-10-05-REL9_3_10};
\addplot table[]{du.out.2015-10-05-REL9_4_5};
\addplot table[]{du.out.2016-01-04-REL9_5_0};
\end{axis}
\end{tikzpicture}
\end{frame}
\subsection{8.4}
\begin{frame}{PostgreSQL 8.4}
\begin{itemize}%[<+-| alert@+>]
\item Visibility Map
\item Free Space Map
\item Windowing Functions
\item Common Table Expressions and Recursive Queries
\end{itemize}
\end{frame}
\section{New frontiers}
\subsection{9.0}
\begin{frame}{PostgreSQL 9.0}
\begin{itemize}%[<+-| alert@+>]
\item Streaming Replication, allowing continuous archive (WAL) files to be streamed over a network connection to a standby server
\item Hot Standby, allowing continuous archive standby servers to execute read-only queries
\item pg\_upgrade to support in-place upgrades from 8.3 or 8.4 to 9.0.
\end{itemize}
\end{frame}
\subsection{9.1}
\begin{frame}{PostgreSQL 9.1}
\begin{itemize}%[<+-| alert@+>]
\item Synchronous Replication
\item Foreign Tables
\item Per-Column Collation Support
\item True Serializable Isolation Level
\item Unlogged Tables
\end{itemize}
\end{frame}
\subsection{9.2}
\begin{frame}{PostgreSQL 9.2}
\begin{itemize}%[<+-| alert@+>]
\item Index-Only Scans
\item Cascading Replication
\item Allow pg\_basebackup to make base backups from standby servers
\item Add a JSON data type
\end{itemize}
\end{frame}
\subsection{9.3}
\begin{frame}{PostgreSQL 9.3}
\begin{itemize}%[<+-| alert@+>]
\item Materialized views
\item Make simple views auto-updatable
\item Allow foreign data wrappers to support writes (inserts/updates/deletes) on foreign tables
\end{itemize}
\end{frame}
\subsection{9.4}
\begin{frame}{PostgreSQL 9.4}
\begin{itemize}%[<+-| alert@+>]
\item Add jsonb, a more capable and efficient data type for storing JSON data
\item Add new SQL command ALTER SYSTEM for changing postgresql.conf configuration file entries
\item Allow materialized views to be refreshed without blocking concurrent reads
\item Add support for logical decoding of WAL data, to allow database changes to be streamed out in a customizable format
\end{itemize}
\end{frame}
\subsection{9.5}
\begin{frame}{PostgreSQL 9.5}
\begin{itemize}%[<+-| alert@+>]
\item Allow INSERTs that would generate constraint conflicts to be turned into UPDATEs or ignored
\item Add row-level security control
\item Add Block Range Indexes (BRIN)
\item Substantial performance improvements for sorting
\item Substantial performance improvements for multi-CPU machines
\end{itemize}
\end{frame}
\subsection{9.6}
\begin{frame}{PostgreSQL 9.6}
\begin{itemize}%[<+-| alert@+>]
\item Parallel execution of sequential scans, joins and aggregates
\item postgres\_fdw now supports remote joins, sorts, UPDATEs, and DELETEs
\item Substantial performance improvements, especially in the area of scalability on multi-CPU-socket servers
\end{itemize}
\end{frame}
\section{The future}
\begin{frame}{PostgreSQL 10}
\begin{itemize}%[<+-| alert@+>]
\item Parallel Sort?
\item Multi-master Logical Replication?
\item Autonomous Transactions?
\end{itemize}
\end{frame}
\end{document}