Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Mind that build_check_constraint_name returns quoted name. #181

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Oct 10, 2018
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion hash.sql
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ BEGIN

/* Fetch definition of old_partition's HASH constraint */
SELECT pg_catalog.pg_get_constraintdef(oid) FROM pg_catalog.pg_constraint
WHERE conrelid = old_partition AND conname = old_constr_name
WHERE conrelid = old_partition AND quote_ident(conname) = old_constr_name
INTO old_constr_def;

/* Detach old partition */
Expand Down