Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1f0mly-0000x7-U3 for pgsql-general@arkaria.postgresql.org; Tue, 27 Mar 2018 11:28:15 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1f0mlx-0007wZ-VE for pgsql-general@arkaria.postgresql.org; Tue, 27 Mar 2018 11:28:13 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1f0mlx-0007wP-Ju for pgsql-general@lists.postgresql.org; Tue, 27 Mar 2018 11:28:13 +0000 Received: from mail-qt0-x244.google.com ([2607:f8b0:400d:c0d::244]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1f0mlv-0003cL-5p for pgsql-general@lists.postgresql.org; Tue, 27 Mar 2018 11:28:12 +0000 Received: by mail-qt0-x244.google.com with SMTP id s48so23533514qtb.10 for ; Tue, 27 Mar 2018 04:28:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:references:from:message-id:date:user-agent:mime-version :in-reply-to:content-transfer-encoding:content-language; bh=JdjMkytoaxbvM8OHm1ntMadckL0e8KOfVlHi2kRfrM4=; b=rT+71dfLcMamUDvIXzXjEyT72gKe+ocYZs2/qLCaebwr38pyTY5lqbFx0lcXiDQ6zE kUL56g9it5mqUL22aqm+loYkC8G34SIm83tD7yywzjskCCCeWE14FeeO16rGkRAy4D0t 4rvZMgc5VAnDp/eTqsFGl7IdxADR26F545oVlIZx0NpQeGUAVlagpYsOrkaFGu72uoMX FL6tiw07uF207Sp83LkdLtdKgvl0LNpnBf8aFsdiAbfLDqlAW3Z3vMyqyGMzwtuI+drW ozN7BpSgVDRWmMq18Vm2/4rQ43UkUwPQxDWTEaaV02CgJ1ULjCI++dPkRH47mGXfnzwA O6jw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-transfer-encoding :content-language; bh=JdjMkytoaxbvM8OHm1ntMadckL0e8KOfVlHi2kRfrM4=; b=nxcNzV9mAwqGAxMPXw0xlSKj3ztc9XZ7NiNv3VfgYH2LaPjIK2RxnsbYFknk9Rd0OR fjYxUg3pC0Lcp7ifIXiuqVzETe3dPmAuKo6J2VhJ6k1iI75mr4QdRwNDe75O9qgDTciu /zvbKhi6HTajL31pV+cJyQfnONFMHyw5W8VVL90odAjJri1RgKiInkk0dU0mJs+foYLi XS/e7XyuBJ6Ohoe/rPiOLYFBqd0DZ7Q7OE58mk0q+7nQ7+iKZ/6YTYiBMHta/N9tg7XO Xhvbw/x9TQcFeFjc39Fc3JwH1UIw3KReOrnH9Wx29zGmuQ586geFFvcrAHdI/gRxPqUa N5Sw== X-Gm-Message-State: AElRT7GIA9xZnys6zoLuBXA6JDF8fAB2qhsTngZ8uolVs1dtvD+L8snl VyYyk2xaweoL0EYicujinESBGg== X-Google-Smtp-Source: AIpwx4+StyYcjL1YzzKoOHL3jcpMypp62cqRoRj/oXMdJ6g9T6ZU1TDVwd+cM0r/i+mSCMfOHhXyAg== X-Received: by 10.200.36.144 with SMTP id s16mr20461039qts.0.1522150089769; Tue, 27 Mar 2018 04:28:09 -0700 (PDT) Received: from [10.20.10.6] (ip-39-230-239-173.toronto.ca.northamericancoax.com. [173.239.230.39]) by smtp.googlemail.com with ESMTPSA id z63sm718851qkc.60.2018.03.27.04.28.08 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 27 Mar 2018 04:28:08 -0700 (PDT) Subject: Re: Must re-connect to see tables To: pgsql-general@lists.postgresql.org References: From: Ron Message-ID: <68a4fcd9-b0ed-672e-2e7c-a56d5d12d637@gmail.com> Date: Tue, 27 Mar 2018 06:28:07 -0500 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.6.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Content-Language: en-US List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk 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.