postgresql/src/backend
Bruce Momjian 8c092781f4 ALTER TABLE ... ADD/DROPS INHERIT (actually INHERIT / NO INHERIT)
Open items:

There were a few tangentially related issues that have come up that I think
are TODOs. I'm likely to tackle one or two of these next so I'm interested in
hearing feedback on them as well.

. Constraints currently do not know anything about inheritance. Tom suggested
  adding a coninhcount and conislocal like attributes have to track their
  inheritance status.

. Foreign key constraints currently do not get copied to new children (and
  therefore my code doesn't verify them). I don't think it would be hard to
  add them and treat them like CHECK constraints.

. No constraints at all are copied to tables defined with LIKE. That makes it
  hard to use LIKE to define new partitions. The standard defines LIKE and
  specifically says it does not copy constraints. But the standard already has
  an option called INCLUDING DEFAULTS; we could always define a non-standard
  extension LIKE table INCLUDING CONSTRAINTS that gives the user the option to
  request a copy including constraints.

. Personally, I think the whole attislocal thing is bunk. The decision about
  whether to drop a column from children tables or not is something that
  should be up to the user and trying to DWIM based on whether there was ever
  a local definition or the column was acquired purely through inheritance is
  hardly ever going to match up with user expectations.

. And of course there's the whole unique and primary key constraint issue. I
  think to get any traction at all on this you have a prerequisite of a real
  partitioned table implementation where the system knows what the partition
  key is so it can recognize when it's a leading part of an index key.

Greg Stark
2006-07-02 01:58:36 +00:00
..
access Forget to add new file :(( 2006-06-28 12:08:35 +00:00
bootstrap Add GUC update_process_title to control whether 'ps' display is updated 2006-06-27 22:16:44 +00:00
catalog Change TRUNCATE's method for searching for foreign-key references so that 2006-06-29 16:07:29 +00:00
commands ALTER TABLE ... ADD/DROPS INHERIT (actually INHERIT / NO INHERIT) 2006-07-02 01:58:36 +00:00
executor Fix hash aggregation to suppress unneeded columns from being stored in 2006-06-28 19:40:52 +00:00
lib Update copyright for 2006. Update scripts. 2006-03-05 15:59:11 +00:00
libpq Split definitions for md5.c out of crypt.h and into their own header 2006-06-20 19:56:52 +00:00
main Merge postmaster and postgres command into just postgres. postmaster 2006-06-18 15:38:37 +00:00
nodes ALTER TABLE ... ADD/DROPS INHERIT (actually INHERIT / NO INHERIT) 2006-07-02 01:58:36 +00:00
optimizer Fix oversight in planning for multiple indexscans driven by 2006-07-01 22:07:23 +00:00
parser ALTER TABLE ... ADD/DROPS INHERIT (actually INHERIT / NO INHERIT) 2006-07-02 01:58:36 +00:00
po Fix copy-and-pasteo in Russian translation: message complaining about 2006-06-03 16:48:59 +00:00
port Remove Win32 file, moved to /port. 2006-06-08 15:15:13 +00:00
postmaster Remove the separate 'stats buffer' process, letting backend stats messages 2006-06-29 20:00:08 +00:00
regex Re-run pgindent, fixing a problem where comment lines after a blank 2005-11-22 18:17:34 +00:00
rewrite DROP ... IF EXISTS for the following cases: 2006-06-16 20:23:45 +00:00
storage Add GUC update_process_title to control whether 'ps' display is updated 2006-06-27 22:16:44 +00:00
tcop Add GUC update_process_title to control whether 'ps' display is updated 2006-06-27 22:16:44 +00:00
utils Fix oversight in planning for multiple indexscans driven by 2006-07-01 22:07:23 +00:00
Makefile Remove dllinit.c; it was only needed for long-obsolete Cygwin versions, 2006-06-22 23:50:35 +00:00
nls.mk Add _ to gettext triggers. Must have been forgotten here when it was introduced. 2005-10-04 11:14:03 +00:00