pg.ddx.io pgsql-committers@postgresql.org mailing list archivehelp / color / mirror / Atom feed
pgsql: Improve error message and hint for ALTER COLUMN TYPE can't-cast 4+ messages / 1 participants [nested] [flat]
* pgsql: Improve error message and hint for ALTER COLUMN TYPE can't-cast @ 2015-06-12 15:54 Tom Lane <tgl@sss.pgh.pa.us> 0 siblings, 0 replies; 4+ messages in thread From: Tom Lane @ 2015-06-12 15:54 UTC (permalink / raw) To: pgsql-committers Improve error message and hint for ALTER COLUMN TYPE can't-cast failure. We already tried to improve this once, but the "improved" text was rather off-target if you had provided a USING clause. Also, it seems helpful to provide the exact text of a suggested USING clause, so users can just copy-and-paste it when needed. Per complaint from Keith Rarick and a suggestion from Merlin Moncure. Back-patch to 9.2 where the current wording was adopted. Branch ------ REL9_4_STABLE Details ------- http://git.postgresql.org/pg/commitdiff/1c150f8aa759aaa9e5761da79653894510d868db Modified Files -------------- src/backend/commands/tablecmds.c | 25 ++++++++++++++++++++----- src/test/regress/expected/alter_table.out | 7 +++++-- src/test/regress/sql/alter_table.sql | 1 + 3 files changed, 26 insertions(+), 7 deletions(-) -- Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-committers ^ permalink raw reply [nested|flat] 4+ messages in thread
* pgsql: Improve error message and hint for ALTER COLUMN TYPE can't-cast @ 2015-06-12 15:54 Tom Lane <tgl@sss.pgh.pa.us> 0 siblings, 0 replies; 4+ messages in thread From: Tom Lane @ 2015-06-12 15:54 UTC (permalink / raw) To: pgsql-committers Improve error message and hint for ALTER COLUMN TYPE can't-cast failure. We already tried to improve this once, but the "improved" text was rather off-target if you had provided a USING clause. Also, it seems helpful to provide the exact text of a suggested USING clause, so users can just copy-and-paste it when needed. Per complaint from Keith Rarick and a suggestion from Merlin Moncure. Back-patch to 9.2 where the current wording was adopted. Branch ------ REL9_2_STABLE Details ------- http://git.postgresql.org/pg/commitdiff/ae6ae424b502afcc514a2ce14de476a9714b6a75 Modified Files -------------- src/backend/commands/tablecmds.c | 25 ++++++++++++++++++++----- src/test/regress/expected/alter_table.out | 7 +++++-- src/test/regress/sql/alter_table.sql | 1 + 3 files changed, 26 insertions(+), 7 deletions(-) -- Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-committers ^ permalink raw reply [nested|flat] 4+ messages in thread
* pgsql: Improve error message and hint for ALTER COLUMN TYPE can't-cast @ 2015-06-12 15:54 Tom Lane <tgl@sss.pgh.pa.us> 0 siblings, 0 replies; 4+ messages in thread From: Tom Lane @ 2015-06-12 15:54 UTC (permalink / raw) To: pgsql-committers Improve error message and hint for ALTER COLUMN TYPE can't-cast failure. We already tried to improve this once, but the "improved" text was rather off-target if you had provided a USING clause. Also, it seems helpful to provide the exact text of a suggested USING clause, so users can just copy-and-paste it when needed. Per complaint from Keith Rarick and a suggestion from Merlin Moncure. Back-patch to 9.2 where the current wording was adopted. Branch ------ REL9_3_STABLE Details ------- http://git.postgresql.org/pg/commitdiff/9e86bc29b6e5dba11e687161c3520b90b570e491 Modified Files -------------- src/backend/commands/tablecmds.c | 25 ++++++++++++++++++++----- src/test/regress/expected/alter_table.out | 7 +++++-- src/test/regress/sql/alter_table.sql | 1 + 3 files changed, 26 insertions(+), 7 deletions(-) -- Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-committers ^ permalink raw reply [nested|flat] 4+ messages in thread
* pgsql: Improve error message and hint for ALTER COLUMN TYPE can't-cast @ 2015-06-12 15:54 Tom Lane <tgl@sss.pgh.pa.us> 0 siblings, 0 replies; 4+ messages in thread From: Tom Lane @ 2015-06-12 15:54 UTC (permalink / raw) To: pgsql-committers Improve error message and hint for ALTER COLUMN TYPE can't-cast failure. We already tried to improve this once, but the "improved" text was rather off-target if you had provided a USING clause. Also, it seems helpful to provide the exact text of a suggested USING clause, so users can just copy-and-paste it when needed. Per complaint from Keith Rarick and a suggestion from Merlin Moncure. Back-patch to 9.2 where the current wording was adopted. Branch ------ master Details ------- http://git.postgresql.org/pg/commitdiff/b00982344a73d9cb626430dd17a6da84c15c9980 Modified Files -------------- src/backend/commands/tablecmds.c | 25 ++++++++++++++++++++----- src/test/regress/expected/alter_table.out | 7 +++++-- src/test/regress/sql/alter_table.sql | 1 + 3 files changed, 26 insertions(+), 7 deletions(-) -- Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-committers ^ permalink raw reply [nested|flat] 4+ messages in thread
end of thread, other threads:[~2015-06-12 15:54 UTC | newest] Thread overview: 4+ messages (download: mbox mbox.gz follow: Atom feed) -- links below jump to the message on this page -- 2015-06-12 15:54 pgsql: Improve error message and hint for ALTER COLUMN TYPE can't-cast Tom Lane <tgl@sss.pgh.pa.us> 2015-06-12 15:54 pgsql: Improve error message and hint for ALTER COLUMN TYPE can't-cast Tom Lane <tgl@sss.pgh.pa.us> 2015-06-12 15:54 pgsql: Improve error message and hint for ALTER COLUMN TYPE can't-cast Tom Lane <tgl@sss.pgh.pa.us> 2015-06-12 15:54 pgsql: Improve error message and hint for ALTER COLUMN TYPE can't-cast Tom Lane <tgl@sss.pgh.pa.us>
This inbox is served by DDX for PostgreSQL; see mirroring instructions for how to clone and mirror all data and code used for this inbox