From: Marc Munro <marc@bloodnok.com>
To: Postgres-Bugs <pgsql-bugs@postgresql.org>
Subject: pg_dump failure with 9.3 server
Date: Mon, 05 Jan 2015 13:15:05 -0800
Message-ID: <1420492505.23613.15.camel@bloodnok.com> (raw)
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-bugs>
I have found a problem with pg_dump (9.3 and 9.4) against a specially
crafted 9.3 database.
This is not a critical bug for me.
Here is a capture from an xterm session, showing the full sequence of
commands to reproduce the problem.
marc:skit$ psql
psql (9.4.0, server 9.3.5)
Type "help" for help.
postgres=# drop database regressdb;
DROP DATABASE
postgres=# create database regressdb;
CREATE DATABASE
postgres=# \q
marc:skit$ psql -d regressdb
psql (9.4.0, server 9.3.5)
Type "help" for help.
regressdb=# create
regressdb-# function ddl_notice() returns event_trigger as
regressdb-# $$
regressdb$# begin
regressdb$# raise notice 'DDL!!!!!!';
regressdb$# end;
regressdb$# $$
regressdb-# language plpgsql;
CREATE FUNCTION
regressdb=#
regressdb=#
regressdb=# create event trigger ddl_notice on ddl_command_start
regressdb-# when tag in ('DROP FUNCTION')
regressdb-# execute procedure ddl_notice();
CREATE EVENT TRIGGER
regressdb=#
regressdb=# alter event trigger ddl_notice disable;
ALTER EVENT TRIGGER
regressdb=#
regressdb=# comment on event trigger ddl_notice is
regressdb-# 'an event trigger';
COMMENT
regressdb=# \q
marc:skit$ pg_dump regressdb >x
cannot duplicate null pointer (internal error)
marc:skit$
This is on debian 7.7 with the following packages installed:
dpkg info:
postgresql-client-9.4 9.4.0-1.pgdg70+1
postgresql-9.3 9.3.5-2.pgdg70+1
uname -a:
Linux bloodnok 3.6.3-upstream #1 SMP Tue Nov 13 16:18:51 PST 2012 x86_64 GNU/Linux
Also reproduced on my i686 laptop with pg9.3 client and server.
The problem seems to be related to the comment on the event trigger. If
I remove the comment, the failure no longer occurs.
__
Marc
Attachments:
signature.asc (application/pgp-signature, 197B) download
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-bugs@postgresql.org
Cc: marc@bloodnok.com
Subject: Re: pg_dump failure with 9.3 server
In-Reply-To: <1420492505.23613.15.camel@bloodnok.com>
References: <1420492505.23613.15.camel@bloodnok.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
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