aboutsummaryrefslogtreecommitdiff
path: root/src/backend/regex/regexec.c
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2012-02-10 13:28:25 -0500
committerTom Lane <tgl@sss.pgh.pa.us>2012-02-10 13:28:25 -0500
commit0951f4d1f5849ff3d868452debf4ced1a736efd0 (patch)
treec60fe928d99a6fc7907942a0b5b265df74256256 /src/backend/regex/regexec.c
parent7b4fcabb2f7df4480fefd487c004369a98ac110c (diff)
downloadpostgresql-0951f4d1f5849ff3d868452debf4ced1a736efd0.tar.gz
postgresql-0951f4d1f5849ff3d868452debf4ced1a736efd0.zip
Fix pg_dump for better handling of inherited columns.
Revise pg_dump's handling of inherited columns, which was last looked at seriously in 2001, to eliminate several misbehaviors associated with inherited default expressions and NOT NULL flags. In particular make sure that a column is printed in a child table's CREATE TABLE command if and only if it has attislocal = true; the former behavior would sometimes cause a column to become marked attislocal when it was not so marked in the source database. Also, stop relying on textual comparison of default expressions to decide if they're inherited; instead, don't use default-expression inheritance at all, but just install the default explicitly at each level of the hierarchy. This fixes the search-path-related misbehavior recently exhibited by Chester Young, and also removes some dubious assumptions about the order in which ALTER TABLE SET DEFAULT commands would be executed. Back-patch to all supported branches.
Diffstat (limited to 'src/backend/regex/regexec.c')
0 files changed, 0 insertions, 0 deletions