postgresql/src/test/regress/sql
Robert Haas 63f9282f6e Tighten integrity checks on ALTER TABLE ... ALTER COLUMN ... RENAME.
When a column is renamed, we recursively rename the same column in
all descendent tables.  But if one of those tables also inherits that
column from a table outside the inheritance hierarchy rooted at the
named table, we must throw an error.  The previous coding correctly
prohibited the rename when the parent had inherited the column from
elsewhere, but overlooked the case where the parent was OK but a child
table also inherited the same column from a second, unrelated parent.

For now, not backpatched due to lack of complaints from the field.

KaiGai Kohei, with further changes by me.
Reviewed by Bernd Helme and Tom Lane.
2010-02-01 19:28:56 +00:00
..
abstime.sql Add a "USING" clause to DELETE, which is equivalent to the FROM clause 2005-04-07 01:51:41 +00:00
aggregates.sql Add string_agg aggregate functions. The one argument version concatenates 2010-02-01 03:14:45 +00:00
alter_table.sql DROP IF EXISTS for columns and constraints. Andres Freund. 2009-07-20 02:42:28 +00:00
arrays.sql Remove SQL-compatibility function cardinality(). It is not exactly clear 2009-04-09 17:39:50 +00:00
bit.sql Add get_bit/set_bit functions for bit strings, paralleling those for bytea, 2010-01-25 20:55:32 +00:00
bitmapops.sql Replace "amgetmulti" AM functions with "amgetbitmap", in which the whole 2008-04-10 22:25:26 +00:00
boolean.sql Accept 'on' and 'off' as input for boolean data type, unifying the syntax 2009-03-09 14:34:35 +00:00
box.sql Rename contains/contained-by operators to @> and <@, per discussion that 2006-09-10 00:29:35 +00:00
btree_index.sql Fix breakage of bitmap scan plan creation for special index operators such 2008-11-20 19:52:54 +00:00
case.sql Adjust constant-folding of CASE expressions so that the simple comparison 2005-02-02 21:49:09 +00:00
char.sql Add a "USING" clause to DELETE, which is equivalent to the FROM clause 2005-04-07 01:51:41 +00:00
circle.sql Support ORDER BY ... NULLS FIRST/LAST, and add ASC/DESC/NULLS FIRST/NULLS LAST 2007-01-09 02:14:16 +00:00
cluster.sql Add an ORDER BY to nail down the expected row order from a query that's 2007-09-03 01:28:40 +00:00
combocid.sql Avoid incrementing the CommandCounter when CommandCounterIncrement is called 2007-11-30 21:22:54 +00:00
comments.sql
conversion.sql Support hex-string input and output for type BYTEA. 2009-08-04 16:08:37 +00:00
copy2.sql Define a new, more extensible syntax for COPY options. 2009-09-21 20:10:21 +00:00
copyselect.sql Teach the system how to use hashing for UNION. (INTERSECT/EXCEPT will follow, 2008-08-07 01:11:52 +00:00
create_aggregate.sql Support ORDER BY within aggregate function calls, at long last providing a 2009-12-15 17:57:48 +00:00
create_cast.sql Add test case for CREATE CAST. 2008-10-31 09:17:17 +00:00
create_index.sql Add point_ops opclass for GiST. 2010-01-14 16:31:09 +00:00
create_misc.sql Add a "USING" clause to DELETE, which is equivalent to the FROM clause 2005-04-07 01:51:41 +00:00
create_operator.sql
create_table.sql Tsearch2 functionality migrates to core. The bulk of this work is by 2007-08-21 01:11:32 +00:00
create_type.sql Flip the default typispreferred setting from true to false. This affects 2008-07-30 19:35:13 +00:00
create_view.sql Allow CREATE OR REPLACE VIEW to add columns to the _end_ of the view. 2008-12-06 23:22:46 +00:00
date.sql Extend the date type to support infinity and -infinity, analogously to 2008-10-14 17:12:33 +00:00
delete.sql Remove add_missing_from GUC and associated parser support for "implicit RTEs". 2009-10-21 20:22:38 +00:00
dependency.sql Create a separate grantable privilege for TRUNCATE, rather than having it be 2008-09-08 00:47:41 +00:00
domain.sql Fix select_common_type() so that it can select a domain type, if all inputs 2007-11-26 16:46:51 +00:00
drop_if_exists.sql DROP IF EXISTS for ROLE/USER/GROUP 2006-02-04 19:06:47 +00:00
drop.sql
enum.sql Support enum data types. Along the way, use macros for the values of 2007-04-02 03:49:42 +00:00
errors.sql Add a regression test to verify that the stack depth checker actually 2005-02-11 22:15:12 +00:00
euc_cn.sql
euc_jp.sql
euc_kr.sql
euc_tw.sql
float4.sql Fix float4/8 to handle Infinity and Nan consistently, e.g. Infinity is a 2007-01-02 20:00:50 +00:00
float8.sql Add regression test for various power expressions with a zero base, and 2008-05-08 22:17:54 +00:00
foreign_data.sql Avoid using trivial usernames in foreign_data regression test. 2009-10-14 23:36:43 +00:00
foreign_key.sql Refactor the handling of the various DropStmt variants so that when multiple 2008-06-14 18:04:34 +00:00
geometry.sql Stop a few regression tests from needlessly disabling GEQO. This was 2007-05-29 04:17:08 +00:00
guc.sql Remove regex_flavor GUC, so that regular expressions are always "advanced" 2009-10-21 20:38:58 +00:00
hash_index.sql Add a "USING" clause to DELETE, which is equivalent to the FROM clause 2005-04-07 01:51:41 +00:00
horology.sql Make to_timestamp and friends skip leading spaces before an integer field, 2009-06-22 17:54:30 +00:00
hs_primary_extremes.sql Allow read only connections during recovery, known as Hot Standby. 2009-12-19 01:32:45 +00:00
hs_primary_setup.sql Allow read only connections during recovery, known as Hot Standby. 2009-12-19 01:32:45 +00:00
hs_standby_allowed.sql Allow read only connections during recovery, known as Hot Standby. 2009-12-19 01:32:45 +00:00
hs_standby_check.sql Allow read only connections during recovery, known as Hot Standby. 2009-12-19 01:32:45 +00:00
hs_standby_disallowed.sql Allow read only connections during recovery, known as Hot Standby. 2009-12-19 01:32:45 +00:00
hs_standby_functions.sql Allow read only connections during recovery, known as Hot Standby. 2009-12-19 01:32:45 +00:00
inet.sql Fix incorrect addition, subtraction, and overflow checking in new 2006-02-11 20:39:59 +00:00
inherit.sql Tighten integrity checks on ALTER TABLE ... ALTER COLUMN ... RENAME. 2010-02-01 19:28:56 +00:00
insert.sql A few regression tests for VALUES, from Gavin Sherry. 2006-08-03 14:54:44 +00:00
int2.sql Add a "USING" clause to DELETE, which is equivalent to the FROM clause 2005-04-07 01:51:41 +00:00
int4.sql Add a "USING" clause to DELETE, which is equivalent to the FROM clause 2005-04-07 01:51:41 +00:00
int8.sql Remove some unportable tests 2008-10-05 18:56:09 +00:00
interval.sql Change AdjustIntervalForTypmod to not discard higher-order field values on the 2009-06-01 23:55:15 +00:00
join.sql Add support for doing FULL JOIN ON FALSE. While this is really a rather 2010-01-05 23:25:36 +00:00
limit.sql Fix parameter recalculation for Limit nodes: during a ReScan call we must 2007-05-17 19:35:08 +00:00
lseg.sql
macaddr.sql Add regression test for macaddr type. Enhance documentation about accepted 2008-10-03 15:37:18 +00:00
money.sql Add regression tests for MONEY type. 2007-11-24 19:49:23 +00:00
mule_internal.sql
name.sql Add a "USING" clause to DELETE, which is equivalent to the FROM clause 2005-04-07 01:51:41 +00:00
namespace.sql Add CREATE TRIGGER, CREATE INDEX, and CREATE SEQUENCE to the list of 2004-01-11 04:58:17 +00:00
numeric_big.sql
numeric.sql Support EEEE (scientific notation) in to_char(). 2009-08-10 18:29:27 +00:00
numerology.sql Improve SELECT DISTINCT to consider hash aggregation, as well as sort/uniq, 2008-08-05 02:43:18 +00:00
oid.sql Add a "USING" clause to DELETE, which is equivalent to the FROM clause 2005-04-07 01:51:41 +00:00
oidjoins.sql Update oidjoins test to match CVS HEAD. 2008-10-13 12:59:57 +00:00
opr_sanity.sql Add some opr_sanity checks that the lengths of the various argument-info 2009-11-29 18:53:54 +00:00
path.sql
plancache.sql Repair bug that allowed RevalidateCachedPlan to attempt to rebuild a cached 2007-11-30 18:38:34 +00:00
plpgsql.sql Remove the default_do_language parameter, instead making DO use a hardwired 2010-01-26 16:33:40 +00:00
point.sql Add point_ops opclass for GiST. 2010-01-14 16:31:09 +00:00
polygon.sql Correct calculations of overlap and contains operations over polygons. 2009-07-28 09:48:00 +00:00
polymorphism.sql Fix regression tests for psql \d view patch 2009-11-03 14:52:10 +00:00
portals_p2.sql
portals.sql Ensure that a cursor has an immutable snapshot throughout its lifespan. 2009-10-02 17:57:30 +00:00
prepare.sql Don't refer to the database name "regression" inside the regression test 2008-07-03 16:01:10 +00:00
prepared_xacts.sql Change the default value of max_prepared_transactions to zero, and add 2009-04-23 00:23:46 +00:00
privileges.sql Additional fixes for large object access control. 2009-12-14 00:39:11 +00:00
random.sql Improve random regression tests to fail less frequently. 2004-03-15 15:46:25 +00:00
rangefuncs.sql Fix a bug introduced when set-returning SQL functions were made inline-able: 2009-12-14 02:15:54 +00:00
reltime.sql Add a "USING" clause to DELETE, which is equivalent to the FROM clause 2005-04-07 01:51:41 +00:00
returning.sql Apply a simple solution to the problem of making INSERT/UPDATE/DELETE 2006-09-02 17:06:52 +00:00
rowtypes.sql Remove add_missing_from GUC and associated parser support for "implicit RTEs". 2009-10-21 20:22:38 +00:00
rules.sql Fix crash if a DROP is attempted on an internally-dependent object. 2009-09-22 15:46:35 +00:00
sanity_check.sql Support deferrable uniqueness constraints. 2009-07-29 20:56:21 +00:00
select_distinct_on.sql Fix assertion failure when a SELECT DISTINCT ON expression is volatile. 2009-09-12 00:04:59 +00:00
select_distinct.sql Alter some gratuitous uses of "ANSI" when "SQL standard" might have been 2009-07-11 21:15:32 +00:00
select_having.sql Make the behavior of HAVING without GROUP BY conform to the SQL spec. 2005-03-10 23:21:26 +00:00
select_implicit.sql Alter regression test cases that rely on the sort order of "aa". Some 2009-01-19 13:38:47 +00:00
select_into.sql
select_views.sql
select.sql Fix equivclass.c's not-quite-right strategy for handling X=X clauses. 2009-09-29 01:20:34 +00:00
sequence.sql Add a RESTART (without parameter) option to ALTER SEQUENCE, allowing a 2008-05-16 23:36:05 +00:00
sql_ascii.sql
stats.sql Simplify and rename some GUC variables, per various recent discussions: 2007-09-24 03:12:23 +00:00
strings.sql Add get_bit/set_bit functions for bit strings, paralleling those for bytea, 2010-01-25 20:55:32 +00:00
subselect.sql Fix set_subquery_pathlist() to copy the RTE's subquery before it gets mangled 2009-03-10 20:58:26 +00:00
temp.sql Don't refer to the database name "regression" inside the regression test 2008-07-03 16:01:10 +00:00
text.sql Fix up text concatenation so that it accepts all the reasonable cases that 2007-06-06 23:00:50 +00:00
time.sql Please find attached two patches for documentation and regression tests 2006-07-06 01:46:38 +00:00
timestamp.sql Remove the datetime keywords ABSTIME and RELTIME, which we'd been treating as 2009-03-22 01:12:32 +00:00
timestamptz.sql Remove the datetime keywords ABSTIME and RELTIME, which we'd been treating as 2009-03-22 01:12:32 +00:00
timetz.sql Please find attached two patches for documentation and regression tests 2006-07-06 01:46:38 +00:00
tinterval.sql Stop a few regression tests from needlessly disabling GEQO. This was 2007-05-29 04:17:08 +00:00
transactions.sql Insert ORDER BY into a few regression test queries that now have unstable 2007-06-09 17:24:46 +00:00
triggers.sql Adjust psql to use pg_get_triggerdef(pretty=true) to remove extra ()'s 2010-01-21 06:11:46 +00:00
truncate.sql Add ONLY support to LOCK and TRUNCATE. By default, these commands are now 2009-01-12 08:54:27 +00:00
tsdicts.sql Add prefix support for synonym dictionary 2009-08-14 14:53:20 +00:00
tsearch.sql Fix bug #4814 (wrong subscript in consistent-function call), and add some 2009-05-19 02:48:26 +00:00
tstypes.sql Extend GIN to support partial-match searches, and extend tsquery to support 2008-05-16 16:31:02 +00:00
txid.sql Migrate the former contrib/txid module into core. This will make it easier 2007-10-13 23:06:28 +00:00
type_sanity.sql Establish the rule that array types should have the same typdelim as their 2008-09-25 03:28:56 +00:00
typed_table.sql Type table feature 2010-01-28 23:21:13 +00:00
union.sql Avoid a premature coercion failure in transformSetOperationTree() when 2009-12-16 22:24:13 +00:00
update.sql Remove add_missing_from GUC and associated parser support for "implicit RTEs". 2009-10-21 20:22:38 +00:00
uuid.sql Rewrite uuid input and output routines to avoid dependency on the 2007-01-31 19:33:54 +00:00
vacuum.sql Support rewritten-based full vacuum as VACUUM FULL. Traditional 2010-01-06 05:31:14 +00:00
varchar.sql Add a "USING" clause to DELETE, which is equivalent to the FROM clause 2005-04-07 01:51:41 +00:00
window.sql Modify the definition of window-function PARTITION BY and ORDER BY clauses 2009-08-27 20:08:03 +00:00
with.sql Fix bug with WITH RECURSIVE immediately inside WITH RECURSIVE. 99% of the 2009-09-09 03:32:52 +00:00
without_oid.sql Combine cmin and cmax fields of HeapTupleHeaders into a single field, by 2007-02-09 03:35:35 +00:00
xml.sql Fix xmlattribute escaping XML special characters twice (bug #4822). 2009-06-09 22:00:57 +00:00
xmlmap.sql Regression test for XML mapping functionality 2009-07-02 07:03:18 +00:00