Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 939ec9b

Browse files
committed
Update SQL features/conformance information to SQL:2011
1 parent be6d1c8 commit 939ec9b

File tree

2 files changed

+32
-10
lines changed

2 files changed

+32
-10
lines changed

doc/src/sgml/features.sgml

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,9 @@
1414
<para>
1515
The formal name of the SQL standard is ISO/IEC 9075 <quote>Database
1616
Language SQL</quote>. A revised version of the standard is released
17-
from time to time; the most recent update appearing in 2008.
18-
The 2008 version is referred to as ISO/IEC 9075:2008, or simply as SQL:2008.
19-
The versions prior to that were SQL:2003, SQL:1999, and SQL-92. Each version
17+
from time to time; the most recent update appearing in 2011.
18+
The 2011 version is referred to as ISO/IEC 9075:2011, or simply as SQL:2011.
19+
The versions prior to that were SQL:2008, SQL:2003, SQL:1999, and SQL-92. Each version
2020
replaces the previous one, so claims of conformance to earlier
2121
versions have no official merit.
2222
<productname>PostgreSQL</productname> development aims for
@@ -50,8 +50,8 @@
5050
</para>
5151

5252
<para>
53-
The <acronym>SQL:2008</acronym> and <acronym>SQL:2003</acronym>
54-
standard versions are also split into a number
53+
The standard versions beginning with <acronym>SQL:2003</acronym>
54+
are also split into a number
5555
of parts. Each is known by a shorthand name. Note that these parts
5656
are not consecutively numbered.
5757

@@ -78,18 +78,18 @@
7878
</para>
7979

8080
<para>
81-
PostgreSQL supports most of the major features of SQL:2008. Out of
81+
PostgreSQL supports most of the major features of SQL:2011. Out of
8282
179 mandatory features required for full Core conformance,
8383
PostgreSQL conforms to at least 160. In addition, there is a long
8484
list of supported optional features. It might be worth noting that at
8585
the time of writing, no current version of any database management
86-
system claims full conformance to Core SQL:2008.
86+
system claims full conformance to Core SQL:2011.
8787
</para>
8888

8989
<para>
9090
In the following two sections, we provide a list of those features
9191
that <productname>PostgreSQL</productname> supports, followed by a
92-
list of the features defined in <acronym>SQL:2008</acronym> which
92+
list of the features defined in <acronym>SQL:2011</acronym> which
9393
are not yet supported in <productname>PostgreSQL</productname>.
9494
Both of these lists are approximate: There might be minor details that
9595
are nonconforming for a feature that is listed as supported, and
@@ -132,7 +132,7 @@
132132
<title>Unsupported Features</title>
133133

134134
<para>
135-
The following features defined in <acronym>SQL:2008</acronym> are not
135+
The following features defined in <acronym>SQL:2011</acronym> are not
136136
implemented in this release of
137137
<productname>PostgreSQL</productname>. In a few cases, equivalent
138138
functionality is available.

src/backend/catalog/sql_features.txt

Lines changed: 23 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,8 @@ B125 Routine language MUMPS NO
2929
B126 Routine language Pascal NO
3030
B127 Routine language PL/I NO
3131
B128 Routine language SQL NO
32+
B211 Module language Ada: VARCHAR and NUMERIC support NO
33+
B221 Routine language Ada: VARCHAR and NUMERIC support NO
3234
E011 Numeric data types YES
3335
E011 Numeric data types 01 INTEGER and SMALLINT data types YES
3436
E011 Numeric data types 02 REAL, DOUBLE PRECISION, and FLOAT data types YES
@@ -176,6 +178,7 @@ F051 Basic date and time 07 LOCALTIME YES
176178
F051 Basic date and time 08 LOCALTIMESTAMP YES
177179
F052 Intervals and datetime arithmetic YES
178180
F053 OVERLAPS predicate YES
181+
F054 TIMESTAMP in DATE type precedence list NO
179182
F081 UNION and EXCEPT in views YES
180183
F111 Isolation levels other than SERIALIZABLE YES
181184
F111 Isolation levels other than SERIALIZABLE 01 READ UNCOMMITTED isolation level YES
@@ -228,6 +231,7 @@ F311 Schema definition statement 04 CREATE VIEW: WITH CHECK OPTION NO
228231
F311 Schema definition statement 05 GRANT statement YES
229232
F312 MERGE statement NO
230233
F313 Enhanced MERGE statement NO
234+
F314 MERGE statement with DELETE branch NO
231235
F321 User authorization YES
232236
F341 Usage tables NO no ROUTINE_*_USAGE tables
233237
F361 Subprogram support YES
@@ -236,6 +240,10 @@ F381 Extended schema manipulation 01 ALTER TABLE statement: ALTER COLUMN clause
236240
F381 Extended schema manipulation 02 ALTER TABLE statement: ADD CONSTRAINT clause YES
237241
F381 Extended schema manipulation 03 ALTER TABLE statement: DROP CONSTRAINT clause YES
238242
F382 Alter column data type YES
243+
F383 Set column not null clause YES
244+
F384 Drop identity property clause NO
245+
F385 Drop column generation expression clause NO
246+
F386 Set identity column generation clause NO
239247
F391 Long identifiers YES
240248
F392 Unicode escapes in identifiers YES
241249
F393 Unicode escapes in literals YES
@@ -262,6 +270,7 @@ F461 Named character sets NO
262270
F471 Scalar subquery values YES
263271
F481 Expanded NULL predicate YES
264272
F491 Constraint management YES
273+
F492 Optional table constraint enforcement NO
265274
F501 Features and conformance views YES
266275
F501 Features and conformance views 01 SQL_FEATURES view YES
267276
F501 Features and conformance views 02 SQL_SIZING view YES
@@ -327,6 +336,8 @@ F862 <result offset clause> in subqueries YES
327336
F863 Nested <result offset clause> in <query expression> YES
328337
F864 Top-level <result offset clause> in views YES
329338
F865 <offset row count> in <result offset clause> YES
339+
F866 FETCH FIRST clause: PERCENT option NO
340+
F867 FETCH FIRST clause: WITH TIES option NO
330341
S011 Distinct data types NO
331342
S011 Distinct data types 01 USER_DEFINED_TYPES view NO
332343
S023 Basic structured types NO
@@ -414,6 +425,8 @@ T175 Generated columns NO
414425
T176 Sequence generator support NO
415426
T177 Sequence generator support: simple restart option NO
416427
T178 Identity columns: simple restart option NO
428+
T180 System-versioned tables NO
429+
T181 Application-time period tables NO
417430
T191 Referential action RESTRICT YES
418431
T201 Comparable data types for referential constraints YES
419432
T211 Basic trigger capability NO
@@ -445,13 +458,14 @@ T321 Basic SQL-invoked routines 04 CALL statement NO
445458
T321 Basic SQL-invoked routines 05 RETURN statement NO
446459
T321 Basic SQL-invoked routines 06 ROUTINES view YES
447460
T321 Basic SQL-invoked routines 07 PARAMETERS view YES
448-
T322 Overloading of SQL-invoked functions and procedures YES
461+
T322 Declared data type attributes NO
449462
T323 Explicit security for external routines YES
450463
T324 Explicit security for SQL routines NO
451464
T325 Qualified SQL parameter references NO
452465
T326 Table functions NO
453466
T331 Basic roles YES
454467
T332 Extended roles NO mostly supported
468+
T341 Overloading of SQL-invoked functions and procedures YES
455469
T351 Bracketed SQL comments (/*...*/ comments) YES
456470
T431 Extended grouping capabilities NO
457471
T432 Nested and concatenated GROUPING SETS NO
@@ -460,9 +474,14 @@ T434 GROUP BY DISTINCT NO
460474
T441 ABS and MOD functions YES
461475
T461 Symmetric BETWEEN predicate YES
462476
T471 Result sets return value NO
477+
T472 DESCRIBE CURSOR NO
463478
T491 LATERAL derived table NO
479+
T495 Combined data change and retrieval NO different syntax
464480
T501 Enhanced EXISTS predicate YES
481+
T502 Period predicates NO
465482
T511 Transaction counts NO
483+
T521 Named arguments in CALL statement NO
484+
T522 Default values for IN parameters of SQL-invoked procedures NO
466485
T541 Updatable table references NO
467486
T551 Optional key words for default syntax YES
468487
T561 Holdable locators NO
@@ -479,6 +498,8 @@ T615 LEAD and LAG functions YES
479498
T616 Null treatment option for LEAD and LAG functions NO
480499
T617 FIRST_VALUE and LAST_VALUE function YES
481500
T618 NTH_VALUE function NO function exists, but some options missing
501+
T619 Nested window functions NO
502+
T620 WINDOW clause: GROUPS option NO
482503
T621 Enhanced numeric functions YES
483504
T631 IN predicate with one list element YES
484505
T641 Multiple column assignment NO only some syntax variants supported
@@ -648,3 +669,4 @@ X303 XMLTable: column default option NO
648669
X304 XMLTable: passing a context item NO
649670
X305 XMLTable: initializing an XQuery variable NO
650671
X400 Name and identifier mapping YES
672+
X410 Alter column data type: XML type YES

0 commit comments

Comments
 (0)