]> git.ipfire.org Git - thirdparty/postgresql.git/commit
Improve two error messages related to foreign keys on partitioned tables
authorMichael Paquier <michael@paquier.xyz>
Mon, 8 Oct 2018 08:56:13 +0000 (17:56 +0900)
committerMichael Paquier <michael@paquier.xyz>
Mon, 8 Oct 2018 08:57:52 +0000 (17:57 +0900)
commitc8ed820c68bcad00d07d60e436cdddb7c0edf44d
tree892a4aa18ffdf7c8530d8da6731bf7221fa61fa1
parent4d7c74039f091e04e520d5688c964f653f8c55a8
Improve two error messages related to foreign keys on partitioned tables

Error messages for creating a foreign key on a partitioned table using
ONLY or NOT VALID were wrong in mentioning the objects they worked on.
This commit adds on the way some regression tests missing for those
cases.

Author: Laurenz Albe
Reviewed-by: Michael Paquier
Discussion: https://postgr.es/m/c11c05810a9ed65e9b2c817a9ef442275a32fe80.camel@cybertec.at
src/backend/commands/tablecmds.c
src/test/regress/expected/foreign_key.out
src/test/regress/sql/foreign_key.sql