pg.ddx.io pgsql-bugs@postgresql.org mailing list archive
help / color / mirror / Atom feedbug in dependency - there is possibility to break a system catalog
2+ messages / 2 participants
[nested] [flat]
* bug in dependency - there is possibility to break a system catalog
@ 2011-10-03 10:47 Pavel Stehule <pavel.stehule@gmail.com>
0 siblings, 1 reply; 2+ messages in thread
From: Pavel Stehule @ 2011-10-03 10:47 UTC (permalink / raw)
To: pgsql-bugs; +Cc: Jiri Skopik/8BC Ltd. <skopik@8bc.com>
Hello
our customer reported a broken system dictionary. The following
statements breaks a catalog:
postgres=# CREATE TYPE test_type AS (a integer, b integer);
CREATE TYPE
Time: 61,016 ms
postgres=#
postgres=# CREATE FUNCTION test_func (variadic x text[] =
'{NULL}'::"test_type"[])
postgres-# RETURNS pg_catalog.void AS $body$ BEGIN END; $body$
LANGUAGE 'plpgsql';
CREATE FUNCTION
Time: 24,637 ms
postgres=#
postgres=# DROP TYPE test_type;
DROP TYPE
Time: 6,824 ms
postgres=# \df
ERROR: cache lookup failed for type 16579
postgres=# select version();
version
──────────────────────────────────────────────────────────────────────────────────────────────────────────────────
PostgreSQL 9.2devel on x86_64-unknown-linux-gnu, compiled by gcc
(GCC) 4.6.0 20110603 (Red Hat 4.6.0-10), 64-bit
(1 row)
Time: 2,021 ms
postgres=#
Regards
Pavel Stehule
^ permalink raw reply [nested|flat] 2+ messages in thread
* Re: bug in dependency - there is possibility to break a system catalog
@ 2011-10-03 16:19 Tom Lane <tgl@sss.pgh.pa.us>
parent: Pavel Stehule <pavel.stehule@gmail.com>
0 siblings, 0 replies; 2+ messages in thread
From: Tom Lane @ 2011-10-03 16:19 UTC (permalink / raw)
To: Pavel Stehule <pavel.stehule@gmail.com>; +Cc: pgsql-bugs; Jiri Skopik/8BC Ltd. <skopik@8bc.com>
Pavel Stehule <pavel.stehule@gmail.com> writes:
> [ we forgot to record dependencies on function default expressions ]
Fixed, thanks for the report.
regards, tom lane
^ permalink raw reply [nested|flat] 2+ messages in thread
end of thread, other threads:[~2011-10-03 16:19 UTC | newest]
Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2011-10-03 10:47 bug in dependency - there is possibility to break a system catalog Pavel Stehule <pavel.stehule@gmail.com>
2011-10-03 16:19 ` 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