postgresql/src/backend
Tom Lane cd902b331d Change the rules for inherited CHECK constraints to be essentially the same
as those for inherited columns; that is, it's no longer allowed for a child
table to not have a check constraint matching one that exists on a parent.
This satisfies the principle of least surprise (rows selected from the parent
will always appear to meet its check constraints) and eliminates some
longstanding bogosity in pg_dump, which formerly had to guess about whether
check constraints were really inherited or not.

The implementation involves adding conislocal and coninhcount columns to
pg_constraint (paralleling attislocal and attinhcount in pg_attribute)
and refactoring various ALTER TABLE actions to be more like those for
columns.

Alex Hunsaker, Nikhil Sontakke, Tom Lane
2008-05-09 23:32:05 +00:00
..
access Change the rules for inherited CHECK constraints to be essentially the same 2008-05-09 23:32:05 +00:00
bootstrap Change the rules for inherited CHECK constraints to be essentially the same 2008-05-09 23:32:05 +00:00
catalog Change the rules for inherited CHECK constraints to be essentially the same 2008-05-09 23:32:05 +00:00
commands Change the rules for inherited CHECK constraints to be essentially the same 2008-05-09 23:32:05 +00:00
executor Change the rules for inherited CHECK constraints to be essentially the same 2008-05-09 23:32:05 +00:00
lib Refactor backend makefiles to remove lots of duplicate code 2008-02-19 10:30:09 +00:00
libpq Use error message wordings for permissions checks on .pgpass and SSL private 2008-03-31 02:43:14 +00:00
main Refactor backend makefiles to remove lots of duplicate code 2008-02-19 10:30:09 +00:00
nodes Remove typename from A_Const. 2008-04-29 14:59:17 +00:00
optimizer Allow the planner's estimate of the fraction of a cursor's rows that will be 2008-05-02 21:26:10 +00:00
parser Add "%option noinput" to the scanners to avoid compiler warnings. GCC 4.3 2008-05-09 15:36:31 +00:00
po Translation updates 2008-01-31 18:04:52 +00:00
port Repair two places where SIGTERM exit could leave shared memory state 2008-04-16 23:59:40 +00:00
postmaster Add pg_conf_load_time() function to report when the Postgres configuration 2008-05-04 21:13:36 +00:00
regex Refactor backend makefiles to remove lots of duplicate code 2008-02-19 10:30:09 +00:00
rewrite Move the HTSU_Result enum definition into snapshot.h, to avoid including 2008-03-26 21:10:39 +00:00
snowball Implement a few changes to how shared libraries and dynamically loadable 2008-04-07 14:15:58 +00:00
storage Remove the recently added USE_SEGMENTED_FILES option, and indeed remove all 2008-05-02 01:08:27 +00:00
tcop Revert addition of pg_terminate_backend() because of race conditions. 2008-04-15 20:28:47 +00:00
tsearch Simplify and standardize conversions between TEXT datums and ordinary C 2008-03-25 22:42:46 +00:00
utils Adjust power() error messages to be more descriptive. 2008-05-09 21:31:23 +00:00
Makefile Enable probes to work with Mac OS X Leopard and other OSes that will 2008-03-17 19:44:41 +00:00
common.mk We need to rebuild objfiles.txt when one of the subdirectories' objfiles.txt 2008-03-17 18:24:56 +00:00
nls.mk Add a new ereport auxiliary function errdetail_log(), which works the same as 2008-03-24 18:08:47 +00:00