mirror of
https://github.com/postgres/postgres.git
synced 2025-07-28 23:42:10 +03:00
Remove not-really-standard implementation of CREATE TABLE's UNDER clause,
and revert documentation to describe the existing INHERITS clause instead, per recent discussion in pghackers. Also fix implementation of SQL_inheritance SET variable: it is not cool to look at this var during the initial parsing phase, only during parse_analyze(). See recent bug report concerning misinterpretation of date constants just after a SET TIMEZONE command. gram.y really has to be an invariant transformation of the query string to a raw parsetree; anything that can vary with time must be done during parse analysis.
This commit is contained in:
@ -2,9 +2,9 @@
|
||||
-- Test inheritance features
|
||||
--
|
||||
CREATE TABLE a (aa TEXT);
|
||||
CREATE TABLE b UNDER a (bb TEXT);
|
||||
CREATE TABLE c UNDER a (cc TEXT);
|
||||
CREATE TABLE d UNDER b,c,a (dd TEXT);
|
||||
CREATE TABLE b (bb TEXT) INHERITS (a);
|
||||
CREATE TABLE c (cc TEXT) INHERITS (a);
|
||||
CREATE TABLE d (dd TEXT) INHERITS (b,c,a);
|
||||
INSERT INTO a(aa) VALUES('aaa');
|
||||
INSERT INTO a(aa) VALUES('aaaa');
|
||||
INSERT INTO a(aa) VALUES('aaaaa');
|
||||
|
@ -2,9 +2,9 @@
|
||||
-- Test inheritance features
|
||||
--
|
||||
CREATE TABLE a (aa TEXT);
|
||||
CREATE TABLE b UNDER a (bb TEXT);
|
||||
CREATE TABLE c UNDER a (cc TEXT);
|
||||
CREATE TABLE d UNDER b,c,a (dd TEXT);
|
||||
CREATE TABLE b (bb TEXT) INHERITS (a);
|
||||
CREATE TABLE c (cc TEXT) INHERITS (a);
|
||||
CREATE TABLE d (dd TEXT) INHERITS (b,c,a);
|
||||
|
||||
INSERT INTO a(aa) VALUES('aaa');
|
||||
INSERT INTO a(aa) VALUES('aaaa');
|
||||
|
Reference in New Issue
Block a user