Embed
Email

features

Document Sample

Shared by: changcheng2
Categories
Tags
Stats
views:
0
posted:
11/7/2011
language:
English
pages:
17
Upcoming PostgreSQL Features



BRUCE MOMJIAN,

ENTERPRISEDB



May, 2009









Abstract

This outlines the upcoming features of PostgreSQL 8.4.







Creative Commons Attribution License http://momjian.us/presentations

PostgreSQL Evolution







Crash SQL Standards Enterprise

86





96









98









01









09

19





19









19









20









20

13 Years







Enterprise features include:



Improved Performance

 









Simplified Maintenance and Administration

 









Efficient 24/7 Operation

 









Upcoming PostgreSQL Features 2

Column-Level Permissions







GRANT SELECT (col1), INSERT (col2), UPDATE (col3)

ON sales_activity TO salesteam;









Upcoming PostgreSQL Features 3

Windowing Functions: Sum



SELECT depname, empno, salary,

sum(salary) OVER (PARTITION BY depname)

FROM empsalary

ORDER BY depname, salary;

depname | empno | salary | sum

-----------+-------+--------+-------

develop | 7 | 4200 | 25100

develop | 9 | 4500 | 25100

develop | 11 | 5200 | 25100

develop | 10 | 5200 | 25100

develop | 8 | 6000 | 25100

personnel | 5 | 3500 | 7400

personnel | 2 | 3900 | 7400

sales | 3 | 4800 | 14600

sales | 4 | 4800 | 14600

sales | 1 | 5000 | 14600

(10 rows)

Upcoming PostgreSQL Features 4

Windowing Functions: Rank



SELECT depname, empno, salary,

rank() OVER (PARTITION BY depname ORDER BY salary)

FROM empsalary;

depname | empno | salary | rank

-----------+-------+--------+------

develop | 7 | 4200 | 1

develop | 9 | 4500 | 2

develop | 11 | 5200 | 3

develop | 10 | 5200 | 3

develop | 8 | 6000 | 5

personnel | 5 | 3500 | 1

personnel | 2 | 3900 | 2

sales | 3 | 4800 | 1

sales | 4 | 4800 | 1

sales | 1 | 5000 | 3

(10 rows)

Upcoming PostgreSQL Features 5

WITH Queries: Simple







WITH tab1(x) AS (SELECT 23 UNION SELECT 55)

SELECT * FROM tab1;

x

----

23

55

(2 rows)









Upcoming PostgreSQL Features 6

WITH Queries: Recursive



WITH RECURSIVE tab1(x) AS

(SELECT 1 UNION ALL SELECT x + 1 FROM tab1 WHERE x < 10)

SELECT * FROM tab1;

x

----

1

2

3

4

5

6

7

8

9

10

(10 rows)

Upcoming PostgreSQL Features 7

Parallel Restore of Dumps







$ pg_restore --multi-thread=4 db.dump









Upcoming PostgreSQL Features 8

Visibility Maps Reduce Vacuum Overhead





Pre−8.4







D D D D D D D D D D D D

A A A A A A A A A A A A

T T T T T T T T T T T T

A A A A A A A A A A A A









8.4+



Upcoming PostgreSQL Features 9

No Need for Free-Space Map Configuration





Removed from postgresql.conf:



#max_fsm_pages = 204800 # min max_fsm_relations*16, 6 bytes each

# (change requires restart)

#max_fsm_relations = 1000 # min 100, ~70 bytes each

# (change requires restart)









Upcoming PostgreSQL Features 10

Prefetch I/O Using posix_fadvise()

SELECT ...









Disk 1 Disk 2 Disk 3

RAID





Upcoming PostgreSQL Features 11

Per-Database Locales







CREATE DATABASE newdb

WITH ENCODING ’UTF8’

COLLATE ’en_GB.UTF8’

CTYPE ’en_GB.UTF8’;









Upcoming PostgreSQL Features 12

Default Values for Function Arguments







CREATE FUNCTION magical(int, int DEFAULT 42) ...









Upcoming PostgreSQL Features 13

Other Improvements







Safe termination of individual sessions

 









Full text search (GIN) performance improvements

 









Upcoming PostgreSQL Features 14

Possible 8.4 Features







In-Place upgrades with pg_migrator

 









Upcoming PostgreSQL Features 15

Possible 8.5 Features





SE-Linux and SQL row-level permissions

 









Read-Only queries on continuous archiving slaves (hot standby)

 









Streaming continuous archiving (log streaming)

 









Index-only scans (covering index)

 









Simplified table partitioning

 









Automatically updatable views

 









Views with CHECK OPTION

 









Autotuning wizard

 









Upcoming PostgreSQL Features 16

Questions?









http://momjian.us/presentations

Upcoming PostgreSQL Features 17



Related docs
Other docs by changcheng2
Trust Meeting Dates for 2010
Views: 0  |  Downloads: 0
Puer Nobis Nascitur
Views: 0  |  Downloads: 0
Newsletter 7th Edition
Views: 0  |  Downloads: 0
Euro Vin Inventory20080802
Views: 0  |  Downloads: 0
llethi
Views: 0  |  Downloads: 0
newsnow dummy
Views: 2  |  Downloads: 0
229315-upload-00001
Views: 0  |  Downloads: 0
amyot
Views: 2  |  Downloads: 0
By registering with docstoc.com you agree to our
privacy policy

You are almost ready to download!

You are almost ready to download!