pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: PG Bug reporting form <noreply@postgresql.org>
To: pgsql-bugs@lists.postgresql.org
Cc: ceccareb@talusmusic.com
Subject: BUG #15263: pg_dump / psql failure.  When loading, psql does not see function-based constraints or indices
Date: Fri, 06 Jul 2018 16:19:06 +0000
Message-ID: <153089394654.1402.10720489116717364594@wrigleys.postgresql.org> (raw)

The following bug has been logged on the website:

Bug reference:      15263
Logged by:          Brian Ceccarelli
Email address:      ceccareb@talusmusic.com
PostgreSQL version: 10.4
Operating system:   Red Hat Enterprise Linux 7.5
Description:        

This problem is easy to duplicate.

I have a database with a table with a function-based check constraint.
The database has another table with a function-based index.
I dump with COPY statements (the default).

When I load the database from the dump I just created, loading (via psql)
logs error messages.  Postgres cannot find functions inside the function the
constraint or index invokes.   You will see.   The following zip file
contains a schema that caused the problem.   Just create a database and run
dumpfailureexample.sql.    pg_dump the database.   psql to load the
database.   The load log is dumpfailureexample.log.

http://talussoftware.com/docs/dumpfailure.zip

------------------------------

I discovered this problem when I dumped a Postgres 9.6.2 DB to a 10.4 DB.  
When I dump using 9's version of pg_dump, the subsequent load works.    When
I dump using 10's pg_dump, the subsequent load fails.



view thread (8+ messages)  latest in thread

Message-ID: <153089394654.1402.10720489116717364594@wrigleys.postgresql.org>
Permalink:  ../153089394654.1402.10720489116717364594@wrigleys.postgresql.org/
Also on:    postgresql.org/message-id/153089394654.1402.10720489116717364594@wrigleys.postgresql.org

 · 

reply

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: noreply@postgresql.org, ceccareb@talusmusic.com
  Subject: Re: BUG #15263: pg_dump / psql failure.  When loading, psql does not see function-based constraints or indices
  In-Reply-To: <153089394654.1402.10720489116717364594@wrigleys.postgresql.org>
  References: <153089394654.1402.10720489116717364594@wrigleys.postgresql.org>

* 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