Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1YpJvG-0002VV-GW for pgsql-admin@arkaria.postgresql.org; Mon, 04 May 2015 17:12:50 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1YpJvG-0001P1-0E for pgsql-admin@arkaria.postgresql.org; Mon, 04 May 2015 17:12:50 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1YpJvE-0001NR-O0 for pgsql-admin@postgresql.org; Mon, 04 May 2015 17:12:48 +0000 Received: from smtp98.ord1c.emailsrvr.com ([108.166.43.98]) by magus.postgresql.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.84) (envelope-from ) id 1YpJvA-0002n8-Nb for pgsql-admin@postgresql.org; Mon, 04 May 2015 17:12:48 +0000 Received: from smtp5.relay.ord1c.emailsrvr.com (localhost.localdomain [127.0.0.1]) by smtp5.relay.ord1c.emailsrvr.com (SMTP Server) with ESMTP id 19DD2180280; Mon, 4 May 2015 13:12:42 -0400 (EDT) Received: by smtp5.relay.ord1c.emailsrvr.com (Authenticated sender: jeff.frost-AT-pgexperts.com) with ESMTPSA id C8C65180660; Mon, 4 May 2015 13:12:41 -0400 (EDT) X-Sender-Id: jeff.frost@pgexperts.com Received: from [10.10.10.15] (8.202-62-69.ftth.swbr.surewest.net [69.62.202.8]) (using TLSv1 with cipher DHE-RSA-AES256-SHA) by 0.0.0.0:587 (trex/5.4.2); Mon, 04 May 2015 17:12:42 GMT Content-Type: text/plain; charset=utf-8 Mime-Version: 1.0 (Mac OS X Mail 8.2 \(2098\)) Subject: Re: migrating to 9.2 created blank dbs From: Jeff Frost In-Reply-To: Date: Mon, 4 May 2015 10:12:40 -0700 Cc: "pgsql-admin(at)postgresql(dot)org" Content-Transfer-Encoding: quoted-printable Message-Id: References: <32752.1430755649@sss.pgh.pa.us> <12B3F4BE-B5B0-4955-808F-3649EC1F7A00@pgexperts.com> To: Marc Fromm X-Mailer: Apple Mail (2.2098) X-Pg-Spam-Score: -1.9 (-) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-admin Precedence: bulk Sender: pgsql-admin-owner@postgresql.org My guess is the script is just using: =05psql -l | awk =E2=80=98{print $1}=E2=80=99 To get the list of DBs to backup instead of: =05psql -c =E2=80=9CSELECT datname from pg_database=E2=80=9D Can you share the script? > On May 4, 2015, at 9:43 AM, Marc Fromm wrote: >=20 > That could be correct that I am misinterpreting the output. Why would the= backup script try to backup these blank entries as a database backup file = called "|"? >=20 > Thanks >=20 > -----Original Message----- > From: Jeff Frost [mailto:jeff@pgexperts.com]=20 > Sent: Monday, May 04, 2015 9:41 AM > To: Marc Fromm > Cc: Tom Lane; Keith; Raghavendra; Keith Fiske; pgsql-admin@postgresql.org > Subject: Re: [ADMIN] migrating to 9.2 created blank dbs >=20 > Any chance you=E2=80=99re just misinterpreting the new more verbose outpu= t of psql=E2=80=99s \l command? >=20 > Nowadays, it looks like this: >=20 > postgres=3D# \l > List of databases > Name | Owner | Encoding | Collate | Ctype | Access privil= eges > ---------------+------------+----------+---------+-------+-------------- > ---------------+------------+----------+---------+-------+--------- > postgres | postgres | UTF8 | C | C | > template0 | postgres | UTF8 | C | C | =3Dc/postgres = + > | | | | | postgres=3DCTc/= postgres > template1 | postgres | UTF8 | C | C | =3Dc/postgres = + > | | | | | postgres=3DCTc/= postgres > (4 rows) >=20 > But there are still only 3 databases being listed above.=20=20 >=20 >> On May 4, 2015, at 9:24 AM, Marc Fromm wrote: >>=20 >> Running the select statement gives me a list of all my databases. The on= ly thing that looks suspicious are a few databases have stuff like this in = the datacl column " {postgres=3DCT/postgres,=3DT/postgres}". The number of = databases with that is suspiciously equal to the number of blanks created. >>=20 >> Marc >>=20 >> -----Original Message----- >> From: Tom Lane [mailto:tgl@sss.pgh.pa.us] >> Sent: Monday, May 04, 2015 9:07 AM >> To: Keith >> Cc: Marc Fromm; Raghavendra; Keith Fiske; pgsql-admin@postgresql.org >> Subject: Re: [ADMIN] migrating to 9.2 created blank dbs >>=20 >>> On Fri, May 1, 2015 at 6:39 PM, Marc Fromm wrote: >>>> I setup a server running postgresql-server-9.2.10-2.el7_1.x86_64.=20 >>>> After restoring my databases form a system running >>>> postgresql-server-8.1.23-10.el5_10 (created with pg_dumpall),=20 >>>> several blank databases/entries were created. >>=20 >> FWIW, this seems to match a symptom we've heard of occasionally in which= the source server's catalogs are corrupted. If the 8.1 server is still on= line it would be interesting to connect to it manually and see what you get= from "select * from pg_database=E2=80=9D. >=20 >=20 --- Jeff Frost CTO, PostgreSQL Experts, Inc. Phone: 1-888-PG-EXPRT x506 FAX: 415-762-5122 http://www.pgexperts.com/=20 --=20 Sent via pgsql-admin mailing list (pgsql-admin@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-admin