diff options
author | Peter Eisentraut | 2019-03-13 13:15:37 +0000 |
---|---|---|
committer | Peter Eisentraut | 2019-03-13 13:25:42 +0000 |
commit | f177660ab01e53dd5597b195dcc8526baa5cfcbd (patch) | |
tree | 73fbb45bb8f7b721cb16dc8780e45b19b406f0c8 /src/backend/commands/statscmds.c | |
parent | bbb96c3704c041d139181c6601e5bc770e045d26 (diff) |
Include all columns in default names for foreign key constraints
When creating a name for a foreign key constraint when none is
specified, use all column names instead of only the first one, similar
to how it is already done for index names.
Author: Paul Martinez <[email protected]>
Reviewed-by: Peter Eisentraut <[email protected]>
Discussion: https://www.postgresql.org/message-id/flat/CAF+2_SFjky6XRfLNRXpkG97W6PRbOO_mjAxqXzAAimU=c7w7_A@mail.gmail.com
Diffstat (limited to 'src/backend/commands/statscmds.c')
-rw-r--r-- | src/backend/commands/statscmds.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/backend/commands/statscmds.c b/src/backend/commands/statscmds.c index 50762e2d51a..8274792a778 100644 --- a/src/backend/commands/statscmds.c +++ b/src/backend/commands/statscmds.c @@ -498,7 +498,8 @@ ChooseExtendedStatisticName(const char *name1, const char *name2, * We know that less than NAMEDATALEN characters will actually be used, * so we can truncate the result once we've generated that many. * - * XXX see also ChooseIndexNameAddition. + * XXX see also ChooseForeignKeyConstraintNameAddition and + * ChooseIndexNameAddition. */ static char * ChooseExtendedStatisticNameAddition(List *exprs) |