pg.ddx.io pgsql-bugs@postgresql.org mailing list archive
help / color / mirror / Atom feedBUG #11884: pg_dump / restore mangles IS DISTINCT FROM expressions
2+ messages / 2 participants
[nested] [flat]
* BUG #11884: pg_dump / restore mangles IS DISTINCT FROM expressions
@ 2014-11-05 22:50 nickbarnes01@gmail.com
0 siblings, 1 reply; 2+ messages in thread
From: nickbarnes01@gmail.com @ 2014-11-05 22:50 UTC (permalink / raw)
To: pgsql-bugs
The following bug has been logged on the website:
Bug reference: 11884
Logged by: Nick Barnes
Email address: nickbarnes01@gmail.com
PostgreSQL version: 9.3.5
Operating system: CentOS 6.5
Description:
IS DISTINCT FROM expressions are not dumped/restored correctly if the
comparison operator is outside the search path. e.g.:
psql <<EOF
CREATE DATABASE test1;
CREATE DATABASE test2;
\c test1;
CREATE SCHEMA s;
CREATE EXTENSION citext SCHEMA s;
SET search_path TO public, s;
CREATE TABLE t (x citext CHECK (x IS DISTINCT FROM ''));
EOF
pg_dump -d test1 | psql -d test2
psql -d test2 -c '\d t'
The check constraint is restored as (x::text IS DISTINCT FROM
''::s.citext::text), i.e. using the <>(text,text) operator instead of
<>(citext,citext).
--
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs
^ permalink raw reply [nested|flat] 2+ messages in thread
* Re: BUG #11884: pg_dump / restore mangles IS DISTINCT FROM expressions
@ 2014-11-06 00:10 Tom Lane <tgl@sss.pgh.pa.us>
parent: nickbarnes01@gmail.com
0 siblings, 0 replies; 2+ messages in thread
From: Tom Lane @ 2014-11-06 00:10 UTC (permalink / raw)
To: nickbarnes01@gmail.com; +Cc: pgsql-bugs
nickbarnes01@gmail.com writes:
> IS DISTINCT FROM expressions are not dumped/restored correctly if the
> comparison operator is outside the search path. e.g.:
Yeah, this is already under discussion in connection with bug #11617:
http://www.postgresql.org/message-id/flat/20141009200031.25464.53769@wrigleys.postgresql.org
regards, tom lane
--
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs
^ permalink raw reply [nested|flat] 2+ messages in thread
end of thread, other threads:[~2014-11-06 00:10 UTC | newest]
Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2014-11-05 22:50 BUG #11884: pg_dump / restore mangles IS DISTINCT FROM expressions nickbarnes01@gmail.com
2014-11-06 00:10 ` 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