Re: Must re-connect to see tables - Mailing list pgsql-general

From Daniel Verite
Subject Re: Must re-connect to see tables
Date
Msg-id 28f543ea-acce-4376-b237-8a02f8a54fee@manitou-mail.org
Whole thread Raw
In response to Re: Must re-connect to see tables  (Blake McBride <blake@mcbride.name>)
List pgsql-general
    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


pgsql-general by date:

Previous
From: Blake McBride
Date:
Subject: Re: Must re-connect to see tables
Next
From: Tom Dearman
Date:
Subject: logical decoder lsn order between transactions