diff options
author | Tom Lane <tgl@sss.pgh.pa.us> | 2002-08-30 19:23:20 +0000 |
---|---|---|
committer | Tom Lane <tgl@sss.pgh.pa.us> | 2002-08-30 19:23:20 +0000 |
commit | e2d156fa6e8a72fe36b956ea12f2eb09c9320792 (patch) | |
tree | 5ad356c7ce82255f91a5ec6d36d911c2116f9f3e /src/backend/commands/view.c | |
parent | 96fd7192e7102f9cfc10415c614e3dec19a5227e (diff) |
Add attisinherited column to pg_attribute; use it to guard against
column additions, deletions, and renames that would let a child table
get out of sync with its parent. Patch by Alvaro Herrera, with some
kibitzing by Tom Lane.
Diffstat (limited to 'src/backend/commands/view.c')
-rw-r--r-- | src/backend/commands/view.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/backend/commands/view.c b/src/backend/commands/view.c index faaff48fa05..c635a28571d 100644 --- a/src/backend/commands/view.c +++ b/src/backend/commands/view.c @@ -6,7 +6,7 @@ * Portions Copyright (c) 1996-2002, PostgreSQL Global Development Group * Portions Copyright (c) 1994, Regents of the University of California * - * $Id: view.c,v 1.67 2002/07/16 22:12:19 tgl Exp $ + * $Id: view.c,v 1.68 2002/08/30 19:23:19 tgl Exp $ * *------------------------------------------------------------------------- */ @@ -68,6 +68,7 @@ DefineVirtualRelation(const RangeVar *relation, List *tlist) typename->typmod = res->restypmod; def->typename = typename; + def->is_inherited = false; def->is_not_null = false; def->raw_default = NULL; def->cooked_default = NULL; |