postgresql/src/test/regress/sql
Tom Lane a41c4b218f Fix incorrect optimization of foreign-key checks. When an UPDATE on the
referencing table does not change the tuple's FK column(s), we don't bother
to check the PK table since the constraint was presumably already valid.
However, the check is still necessary if the tuple was inserted by our own
transaction, since in that case the INSERT trigger will conclude it need not
make the check (since its version of the tuple has been deleted).  We got this
right for simple cases, but not when the insert and update are in different
subtransactions of the current top-level transaction; in such cases the FK
check would never be made at all.  (Hence, problem dates back to 8.0 when
subtransactions were added --- it's actually the subtransaction version of a
bug fixed in 7.3.5.)  Fix, and add regression test cases.  Report and fix by
Affan Salman.
2007-07-17 17:45:57 +00:00
..
abstime.sql Update regress tests to reflect removal of 'current'. 2001-11-21 18:27:25 +00:00
aggregates.sql The added aggregates are: 2004-05-26 15:26:28 +00:00
alter_table.sql This patch updates the regression tests to allow "make installcheck" to 2005-01-22 05:14:26 +00:00
arrays.sql Further tightening of the array literal parser. Prevent junk 2004-08-28 19:31:29 +00:00
bit.sql Make bit and bit varying types reject too long input. (They already tried 2001-05-22 16:37:17 +00:00
boolean.sql Clean up syntax to use SQL92-ish type coersion 2000-01-04 16:21:02 +00:00
box.sql Implement column aliases on views "CREATE VIEW name (collist)". 2000-03-14 23:06:59 +00:00
btree_index.sql Clean up header for uniform appearance throughout tests. 2000-01-06 06:41:55 +00:00
case.sql Adjust constant-folding of CASE expressions so that the simple comparison 2005-02-02 21:49:49 +00:00
char.sql Make char(n) and varchar(n) types raise an error if the inserted string is 2001-05-21 16:54:46 +00:00
circle.sql Create a 'type cache' that keeps track of the data needed for any particular 2003-08-17 19:58:06 +00:00
cluster.sql OK, here's the final version of ALTER TABLE ... SET WITHOUT CLUSTER. 2004-06-02 21:01:10 +00:00
comments.sql Implement nested block comments in the backend and in psql. 2000-07-14 15:43:57 +00:00
conversion.sql COMMENT ON casts, conversions, languages, operator classes, and 2003-11-21 22:32:49 +00:00
copy2.sql Fix bug in COPY CSV mode: handle consecutive embedded newlines in COPY 2005-05-13 06:35:25 +00:00
create_aggregate.sql COMMENT ON casts, conversions, languages, operator classes, and 2003-11-21 22:32:49 +00:00
create_index.sql COMMENT ON casts, conversions, languages, operator classes, and 2003-11-21 22:32:49 +00:00
create_misc.sql Todo items: 2003-03-20 07:02:11 +00:00
create_operator.sql Attached is a patch implementing factorial(), returning numeric. Points 2003-12-01 21:52:38 +00:00
create_table.sql This patch updates the regression tests to allow "make installcheck" to 2005-01-22 05:14:26 +00:00
create_type.sql COMMENT ON casts, conversions, languages, operator classes, and 2003-11-21 22:32:49 +00:00
create_view.sql COMMENT ON casts, conversions, languages, operator classes, and 2003-11-21 22:32:49 +00:00
date.sql > After all that about numbering centuries and millenia correctly, 2004-08-20 03:45:14 +00:00
domain.sql Require that array literals produce "rectangular" arrays, i.e. all the 2004-08-05 03:30:44 +00:00
drop.sql Add a bunch of pseudo-types to replace the behavior formerly associated 2002-08-22 00:01:51 +00:00
errors.sql This patch updates the regression tests to allow "make installcheck" to 2005-01-22 05:14:26 +00:00
euc_cn.sql Hi, here are the patches to enhance existing MB handling. This time 1998-06-16 07:29:54 +00:00
euc_jp.sql From: t-ishii@sra.co.jp 1998-04-27 17:10:50 +00:00
euc_kr.sql Hi, here are the patches to enhance existing MB handling. This time 1998-06-16 07:29:54 +00:00
euc_tw.sql Add missing mb files. 1999-02-02 19:04:43 +00:00
float4.sql Allow 'Infinity' and '-Infinity' as input to the float4 and float8 2004-03-12 00:25:43 +00:00
float8.sql Add ceiling() as an alias for ceil(), and power() as an alias for pow(). 2004-04-23 20:32:20 +00:00
foreign_key.sql Fix incorrect optimization of foreign-key checks. When an UPDATE on the 2007-07-17 17:45:57 +00:00
geometry.sql Create a 'type cache' that keeps track of the data needed for any particular 2003-08-17 19:58:06 +00:00
hash_index.sql Clean up header for uniform appearance throughout tests. 2000-01-06 06:41:55 +00:00
horology.sql Add missing operators of the form interval-plus-datetime, as required for 2004-07-02 22:50:23 +00:00
inet.sql Update CIDR regresion tests to test for network masks inside the last 2004-10-08 01:45:37 +00:00
inherit.sql Add regression tests for the fix committed by Tom for casting between 2004-12-12 22:49:50 +00:00
insert.sql Reports missing values as bad. 2002-04-24 02:22:54 +00:00
int2.sql Detect overflow in integer arithmetic operators (integer, smallint, and 2004-10-04 14:42:48 +00:00
int4.sql Detect overflow in integer arithmetic operators (integer, smallint, and 2004-10-04 14:42:48 +00:00
int8.sql Add regression test to see if the min/max values of int8 convert correctly. 2005-12-05 04:14:07 +00:00
interval.sql Adjust datetime parsing to be more robust. We now pass the length of the 2005-05-26 02:10:03 +00:00
join.sql As long as we're forcing an ORDER BY in these four join queries, we had 2004-12-03 22:19:28 +00:00
limit.sql Remove LIMIT #,# and suggest LIMIT # OFFSET #, per mailing list discussion. 2001-10-20 02:55:39 +00:00
lseg.sql Clean up format of tests. 2000-01-05 06:07:58 +00:00
mule_internal.sql Hi, here are the patches to enhance existing MB handling. This time 1998-06-16 07:29:54 +00:00
name.sql Changes to documentation and the regression tests for the default 2002-09-07 18:39:05 +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.sql Fix to_number for the case of a trailing S. 2004-10-28 18:55:08 +00:00
numeric_big.sql Update numeric_big regress test for 7.0. This has apparently been 2000-03-30 07:13:20 +00:00
numerology.sql Tweak GROUP BY so that it will still accept result-column names, but only 2000-03-15 23:31:19 +00:00
oid.sql Revise int2/int4/int8/float4/float8 input routines to allow for 2004-03-11 02:11:14 +00:00
oidjoins.sql Update oidjoins regression test to match current catalog structure. 2004-08-04 20:33:49 +00:00
opr_sanity.sql Label CVS tip as 8.0devel instead of 7.5devel. Adjust various comments 2004-08-04 21:34:35 +00:00
path.sql Clean up format of tests. 2000-01-05 06:07:58 +00:00
plpgsql.sql Increase timeout in statement_timeout test from 1 second to 2 seconds. 2006-06-18 16:21:40 +00:00
point.sql Clean up format of tests. 2000-01-05 06:07:58 +00:00
polygon.sql Clean up format of tests. 2000-01-05 06:07:58 +00:00
polymorphism.sql Fix a thinko in my patch of a couple months ago for bug #3116: it did the 2007-05-01 18:54:17 +00:00
portals.sql Fix interaction between materializing holdable cursors and firing 2005-04-11 19:51:32 +00:00
portals_p2.sql Partial indexes work again, courtesy of Martijn van Oosterhout. 2001-07-16 05:07:00 +00:00
prepare.sql Change EXECUTE INTO to CREATE TABLE AS EXECUTE. 2003-07-01 00:04:31 +00:00
privileges.sql Revert patch --- needs more generalized solution. 2004-05-02 13:38:28 +00:00
random.sql Improve random regression tests to fail less frequently. 2004-03-15 15:46:25 +00:00
rangefuncs.sql > Joe Conway <mail@joeconway.com> writes: 2003-07-27 04:35:54 +00:00
reltime.sql Clean up format of tests. 2000-01-05 06:07:58 +00:00
rowtypes.sql Support assignment to subfields of composite columns in UPDATE and INSERT. 2004-06-09 19:08:20 +00:00
rules.sql Add another ORDER BY to rules test to eliminate platform-specific 2005-03-26 02:14:54 +00:00
sanity_check.sql Replace functional-index facility with expressional indexes. Any column 2003-05-28 16:04:02 +00:00
select.sql Back out BETWEEN node patch, was causing initdb failure. 2002-07-18 17:14:20 +00:00
select_distinct.sql Add a basic regression test for IS DISTINCT FROM, which has spent way too 2002-12-13 20:16:11 +00:00
select_distinct_on.sql Redesign DISTINCT ON as discussed in pgsql-sql 1/25/00: syntax is now 2000-01-27 18:11:50 +00:00
select_having.sql Finish implementation of hashed aggregation. Add enable_hashagg GUC 2002-11-21 00:42:20 +00:00
select_implicit.sql Finish implementation of hashed aggregation. Add enable_hashagg GUC 2002-11-21 00:42:20 +00:00
select_into.sql Remove FROM warning by fixing query. 2000-06-04 17:52:54 +00:00
select_views.sql Clean up header for uniform appearance throughout tests. 2000-01-06 06:41:55 +00:00
sequence.sql COMMENT ON casts, conversions, languages, operator classes, and 2003-11-21 22:32:49 +00:00
sql_ascii.sql Add SQL_ASCII encoding test case 2000-03-06 01:29:54 +00:00
stats.sql With pg_autovacuum becoming increasingly popular it's important to 2003-09-13 16:44:49 +00:00
strings.sql Cause CHAR(n) to TEXT or VARCHAR conversion to automatically strip trailing 2003-05-26 00:11:29 +00:00
subselect.sql Fix overenthusiastic optimization of 'x IN (SELECT DISTINCT ...)' and related 2005-07-15 17:09:50 +00:00
temp.sql Support explicit placement of the temporary-table schema within search_path. 2007-04-20 02:38:33 +00:00
text.sql Clean up syntax to use SQL92-ish type coersion 2000-01-04 16:21:02 +00:00
time.sql Allow a time zone to be specified (and silently ignored) in the input 2003-01-31 01:08:08 +00:00
timestamp.sql Per a brief conversation with Tom, I've created a patch for adding 2004-03-05 02:41:14 +00:00
timestamptz.sql Per a brief conversation with Tom, I've created a patch for adding 2004-03-05 02:41:14 +00:00
timetz.sql Fix queries to insulate from daylight savings time. 2001-10-31 14:44:23 +00:00
tinterval.sql Add separate regression tests for timetz and the new timestamptz type. 2001-09-28 08:00:11 +00:00
transactions.sql Redesign query-snapshot timing so that volatile functions in READ COMMITTED 2004-09-13 20:10:13 +00:00
triggers.sql COMMENT ON casts, conversions, languages, operator classes, and 2003-11-21 22:32:49 +00:00
truncate.sql Transaction safe Truncate 2002-11-23 04:05:52 +00:00
type_sanity.sql Label CVS tip as 8.0devel instead of 7.5devel. Adjust various comments 2004-08-04 21:34:35 +00:00
union.sql Adjust data types in some of the UNION tests to avoid potentially 2003-11-02 22:35:26 +00:00
update.sql This patch adds a new regression test for the UPDATE command. Right 2003-08-26 18:32:23 +00:00
vacuum.sql Add new vacuum regression test files. 2002-07-20 04:58:14 +00:00
varchar.sql Make char(n) and varchar(n) types raise an error if the inserted string is 2001-05-21 16:54:46 +00:00
without_oid.sql Label CVS tip as 8.0devel instead of 7.5devel. Adjust various comments 2004-08-04 21:34:35 +00:00