mirror of
https://github.com/postgres/postgres.git
synced 2025-08-12 15:23:02 +03:00
Fix typo in foreign_key.sql
Introduced by eec0040c4b
.
Author: Chao Li <lic@highgo.com>
Discussion: https://postgr.es/m/CAEoWx2kKMdtWKQiYNuwG2L41YwHA7G3sUsRfD9esPJwZyX1+Eg@mail.gmail.com
Backpatch-through: 18
This commit is contained in:
@@ -1750,7 +1750,7 @@ Indexes:
|
|||||||
Referenced by:
|
Referenced by:
|
||||||
TABLE "fk_partitioned_fk" CONSTRAINT "fk_partitioned_fk_a_b_fkey" FOREIGN KEY (a, b) REFERENCES fk_notpartitioned_pk(a, b)
|
TABLE "fk_partitioned_fk" CONSTRAINT "fk_partitioned_fk_a_b_fkey" FOREIGN KEY (a, b) REFERENCES fk_notpartitioned_pk(a, b)
|
||||||
|
|
||||||
-- Check the exsting FK trigger
|
-- Check the existing FK trigger
|
||||||
SELECT conname, tgrelid::regclass as tgrel, regexp_replace(tgname, '[0-9]+', 'N') as tgname, tgtype
|
SELECT conname, tgrelid::regclass as tgrel, regexp_replace(tgname, '[0-9]+', 'N') as tgname, tgtype
|
||||||
FROM pg_trigger t JOIN pg_constraint c ON (t.tgconstraint = c.oid)
|
FROM pg_trigger t JOIN pg_constraint c ON (t.tgconstraint = c.oid)
|
||||||
WHERE tgrelid IN (SELECT relid FROM pg_partition_tree('fk_partitioned_fk'::regclass)
|
WHERE tgrelid IN (SELECT relid FROM pg_partition_tree('fk_partitioned_fk'::regclass)
|
||||||
|
@@ -1296,7 +1296,7 @@ UPDATE fk_notpartitioned_pk SET b = 2504 WHERE a = 2500;
|
|||||||
-- check psql behavior
|
-- check psql behavior
|
||||||
\d fk_notpartitioned_pk
|
\d fk_notpartitioned_pk
|
||||||
|
|
||||||
-- Check the exsting FK trigger
|
-- Check the existing FK trigger
|
||||||
SELECT conname, tgrelid::regclass as tgrel, regexp_replace(tgname, '[0-9]+', 'N') as tgname, tgtype
|
SELECT conname, tgrelid::regclass as tgrel, regexp_replace(tgname, '[0-9]+', 'N') as tgname, tgtype
|
||||||
FROM pg_trigger t JOIN pg_constraint c ON (t.tgconstraint = c.oid)
|
FROM pg_trigger t JOIN pg_constraint c ON (t.tgconstraint = c.oid)
|
||||||
WHERE tgrelid IN (SELECT relid FROM pg_partition_tree('fk_partitioned_fk'::regclass)
|
WHERE tgrelid IN (SELECT relid FROM pg_partition_tree('fk_partitioned_fk'::regclass)
|
||||||
|
Reference in New Issue
Block a user