pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Ron <ronljohnsonjr@gmail.com>
To: pgsql-general@lists.postgresql.org
Subject: Re: Must re-connect to see tables
Date: Tue, 27 Mar 2018 06:28:07 -0500
Message-ID: <68a4fcd9-b0ed-672e-2e7c-a56d5d12d637@gmail.com> (raw)
In-Reply-To: <CABwHSOs=5obj-B=dELLh6FxiGeAdqHZb259WkDi7oR3JUH-t0w@mail.gmail.com>
References: <CABwHSOs=5obj-B=dELLh6FxiGeAdqHZb259WkDi7oR3JUH-t0w@mail.gmail.com>

If it worked in 9.3.22 and now it's failed in 9.3.22, then  I'd look to see 
if something has changed in data.sql.

On 03/27/2018 06:22 AM, Blake McBride wrote:
> Hi,
>
> I have been using PostgreSQL for many years but all of a sudden a db load 
> script I've been using no longer works.  What id does (essentially) is:
>
> psql postgres postgres
> drop database test;
> create database test;
> \c test
> \i data.sql
> \dt
> \q
>
>
> I tested this with a small data.sql and it worked fine. However, when I 
> use a real (much larger) data.sql then \dt replies "No relations"  !  I 
> found this if I stick an extra '\c test' after the '\i data.sql' it works.
>
> The data.sql is a PostgreSQL dump from another database. When the '\i 
> data.sql' is done, the prompt still shows 'test#' so it's not like I've 
> changed databases.
>
> I only have one schema, 'public'.
>
> Can't figure out why a simple example works but a large file requires an 
> extra \c.
>
> Sure appreciate any help.
>
> Blake McBride
>

-- 
Angular momentum makes the world go 'round.




view thread (6+ messages)  latest in thread

Message-ID: <68a4fcd9-b0ed-672e-2e7c-a56d5d12d637@gmail.com>
Permalink:  ../68a4fcd9-b0ed-672e-2e7c-a56d5d12d637@gmail.com/
Also on:    postgresql.org/message-id/68a4fcd9-b0ed-672e-2e7c-a56d5d12d637@gmail.com

 · 

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: ronljohnsonjr@gmail.com
  Subject: Re: Must re-connect to see tables
  In-Reply-To: <68a4fcd9-b0ed-672e-2e7c-a56d5d12d637@gmail.com>
  References: <CABwHSOs=5obj-B=dELLh6FxiGeAdqHZb259WkDi7oR3JUH-t0w@mail.gmail.com> <68a4fcd9-b0ed-672e-2e7c-a56d5d12d637@gmail.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