OSDN Git Service

Implement "WITH / WITHOID OIDS" clause for CREATE TABLE AS. This is
authorNeil Conway <neilc@samurai.com>
Sat, 10 Jan 2004 23:28:45 +0000 (23:28 +0000)
committerNeil Conway <neilc@samurai.com>
Sat, 10 Jan 2004 23:28:45 +0000 (23:28 +0000)
commit98dcf085e35e393bdd6740e6a8f8684b27ac2039
treed09c442bd3c5125b18e47e890b99463f08b6ffe6
parentcf4c925dd420a969351d83d584366c167ae54d25
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.
14 files changed:
doc/src/sgml/ref/create_table_as.sgml
doc/src/sgml/runtime.sgml
src/backend/commands/sequence.c
src/backend/commands/tablecmds.c
src/backend/commands/typecmds.c
src/backend/commands/view.c
src/backend/executor/execMain.c
src/backend/nodes/copyfuncs.c
src/backend/nodes/equalfuncs.c
src/backend/parser/analyze.c
src/backend/parser/gram.y
src/include/nodes/parsenodes.h
src/test/regress/expected/without_oid.out
src/test/regress/sql/without_oid.sql