pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Daniel Verite <daniel@manitou-mail.org>
To: Blake McBride <blake@mcbride.name>
Cc: rob stone <floriparob@gmail.com>
Cc: pgsql-general@postgresql.org
Subject: Re: Must re-connect to see tables
Date: Tue, 27 Mar 2018 14:31:32 +0200
Message-ID: <28f543ea-acce-4376-b237-8a02f8a54fee@manitou-mail.org> (raw)
In-Reply-To: <CABwHSOv5mCK1mz-jtpQW9txqYAzC2cph=SUpJSfYc7VnmmjQ+g@mail.gmail.com>

	Blake McBride wrote:

> data.sql is an untouched dump of a database from PostgreSQL 9.5.12.
> 
> The import seems to have worked.  I just need another \c after the \i.

An effect of reconnecting is to reset the search_path to what
it was before including your dump file.
You're most certainly affected by the search_path-related
changes in pg_dump done in the latest versions following
CVE-2018-1058
See https://www.postgresql.org/support/security/
or
https://www.postgresql.org/about/news/1834/

Manually issuing
  RESET search_path;
after \i data.sql should get "public" back in the search_path
without reconnecting and after that \dt would work as usual.


Best regards,
-- 
Daniel Vérité
PostgreSQL-powered mailer: http://www.manitou-mail.org
Twitter: @DanielVerite




view thread (6+ messages)

Message-ID: <28f543ea-acce-4376-b237-8a02f8a54fee@manitou-mail.org>
Permalink:  ../28f543ea-acce-4376-b237-8a02f8a54fee@manitou-mail.org/
Also on:    postgresql.org/message-id/28f543ea-acce-4376-b237-8a02f8a54fee@manitou-mail.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-general@postgresql.org
  Cc: daniel@manitou-mail.org, blake@mcbride.name, floriparob@gmail.com
  Subject: Re: Must re-connect to see tables
  In-Reply-To: <28f543ea-acce-4376-b237-8a02f8a54fee@manitou-mail.org>
  References: <CABwHSOv5mCK1mz-jtpQW9txqYAzC2cph=SUpJSfYc7VnmmjQ+g@mail.gmail.com> <28f543ea-acce-4376-b237-8a02f8a54fee@manitou-mail.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