Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1Y8Ezj-00024u-Pw for pgsql-bugs@arkaria.postgresql.org; Mon, 05 Jan 2015 21:15:23 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1Y8Ezj-0006y3-99 for pgsql-bugs@arkaria.postgresql.org; Mon, 05 Jan 2015 21:15:23 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1Y8Ezh-0006vU-K5 for pgsql-bugs@postgresql.org; Mon, 05 Jan 2015 21:15:21 +0000 Received: from [69.172.163.92] (helo=neddie.bloodnok.com) by magus.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1Y8Ezd-0000FD-K6 for pgsql-bugs@postgresql.org; Mon, 05 Jan 2015 21:15:20 +0000 Received: by neddie.bloodnok.com (Postfix, from userid 5001) id E1D285C91D; Mon, 5 Jan 2015 13:15:14 -0800 (PST) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on neddie.bloodnok.com X-Spam-Level: X-Spam-Status: No, score=-2.9 required=5.0 tests=ALL_TRUSTED,BAYES_00 autolearn=ham version=3.3.1 Received: from blodnok.com (bloodnok.com [192.168.2.99]) by neddie.bloodnok.com (Postfix) with ESMTP id 4C9B45C8B9 for ; Mon, 5 Jan 2015 13:15:06 -0800 (PST) Received: from [IPv6:::1] (localhost [IPv6:::1]) by blodnok.com (Postfix) with ESMTP id 06A0860961 for ; Mon, 5 Jan 2015 13:15:06 -0800 (PST) Message-ID: <1420492505.23613.15.camel@bloodnok.com> Subject: pg_dump failure with 9.3 server From: Marc Munro To: Postgres-Bugs Date: Mon, 05 Jan 2015 13:15:05 -0800 Content-Type: multipart/signed; micalg="pgp-sha1"; protocol="application/pgp-signature"; boundary="=-mRzxW1iA4LpzGV3ed4FG" X-Mailer: Evolution 3.4.4-3 Mime-Version: 1.0 X-Host-Lookup-Failed: Reverse DNS lookup failed for 69.172.163.92 (failed) X-Pg-Spam-Score: -1.1 (-) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-bugs Precedence: bulk Sender: pgsql-bugs-owner@postgresql.org --=-mRzxW1iA4LpzGV3ed4FG Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable 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=3D# drop database regressdb; DROP DATABASE postgres=3D# create database regressdb; CREATE DATABASE postgres=3D# \q marc:skit$ psql -d regressdb psql (9.4.0, server 9.3.5) Type "help" for help. regressdb=3D# create=20 regressdb-# function ddl_notice() returns event_trigger as regressdb-# $$ regressdb$# begin regressdb$# raise notice 'DDL!!!!!!'; regressdb$# end; regressdb$# $$ regressdb-# language plpgsql; CREATE FUNCTION regressdb=3D#=20 regressdb=3D#=20 regressdb=3D# create event trigger ddl_notice on ddl_command_start regressdb-# when tag in ('DROP FUNCTION') regressdb-# execute procedure ddl_notice(); CREATE EVENT TRIGGER regressdb=3D#=20 regressdb=3D# alter event trigger ddl_notice disable; ALTER EVENT TRIGGER regressdb=3D#=20 regressdb=3D# comment on event trigger ddl_notice is regressdb-# 'an event trigger'; COMMENT regressdb=3D# \q marc:skit$ pg_dump regressdb >x cannot duplicate null pointer (internal error) marc:skit$=20 This is on debian 7.7 with the following packages installed: dpkg info: postgresql-client-9.4 9.4.0-1.pgdg70+1=20 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 G= NU/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 --=-mRzxW1iA4LpzGV3ed4FG Content-Type: application/pgp-signature; name="signature.asc" Content-Description: This is a digitally signed message part Content-Transfer-Encoding: 7bit -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.12 (GNU/Linux) iEYEABECAAYFAlSq/tkACgkQUBr6u+c2wkHvJQCeLK90wBhgo/IAjVTnTpXNbFPn /qwAnjJuPyvPDiVDNMwtHaVCHR/X1khG =5oOp -----END PGP SIGNATURE----- --=-mRzxW1iA4LpzGV3ed4FG--