Implement "WITH / WITHOID OIDS" clause for CREATE TABLE AS. This is
Neil Conway <neilc@samurai.com>
Implement "WITH / WITHOID OIDS" clause for CREATE TABLE AS. This is intended to allow application authors to insulate themselves from changes to the default value of 'default_with_oids' in future releases of PostgreSQL. This patch also fixes a bug in the earlier implementation of the 'default_with_oids' GUC variable: code in gram.y should not examine the value of GUC variables directly due to synchronization issues.
Files
| Path | Change | +/− |
|---|---|---|
| doc/src/sgml/ref/create_table_as.sgml | modified | +32 −11 |
| doc/src/sgml/runtime.sgml | modified | +11 −11 |
| src/backend/commands/sequence.c | modified | +2 −2 |
| src/backend/commands/tablecmds.c | modified | +21 −2 |
| src/backend/commands/typecmds.c | modified | +2 −2 |
| src/backend/commands/view.c | modified | +2 −2 |
| src/backend/executor/execMain.c | modified | +2 −9 |
| src/backend/nodes/copyfuncs.c | modified | +3 −1 |
| src/backend/nodes/equalfuncs.c | modified | +3 −1 |
| src/backend/parser/analyze.c | modified | +17 −1 |
| src/backend/parser/gram.y | modified | +23 −13 |
| src/include/nodes/parsenodes.h | modified | +16 −3 |
| src/test/regress/expected/without_oid.out | modified | +24 −0 |
| src/test/regress/sql/without_oid.sql | modified | +27 −0 |