pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
migrating to 9.2 created blank dbs
14+ messages / 7 participants
[nested] [flat]

* migrating to 9.2 created blank dbs
@ 2015-05-01 22:39 Marc Fromm <Marc.Fromm@wwu.edu>
  2015-05-02 01:20 ` Re: migrating to 9.2 created blank dbs Keith Fiske <keith@omniti.com>
  0 siblings, 1 reply; 14+ messages in thread

From: Marc Fromm @ 2015-05-01 22:39 UTC (permalink / raw)
  To: pgsql-admin

I setup a server running postgresql-server-9.2.10-2.el7_1.x86_64. After restoring my databases form a system running postgresql-server-8.1.23-10.el5_10 (created with pg_dumpall), several blank databases/entries were created.
When I list the database from the command line it shows several entries like:
                         |          |           |         |       | =T/postgres

After importing the databases is there a cleanup command of some sort?
These blank databases/entries do not show in PhpPgAdmin, yet my backup script tries to backup a database called "|"

Thanks

Marc

^ permalink  raw  reply  [nested|flat] 14+ messages in thread

* Re: migrating to 9.2 created blank dbs
  2015-05-01 22:39 migrating to 9.2 created blank dbs Marc Fromm <Marc.Fromm@wwu.edu>
@ 2015-05-02 01:20 ` Keith Fiske <keith@omniti.com>
  2015-05-02 07:11   ` Re: migrating to 9.2 created blank dbs Raghavendra <raghavendra.rao@enterprisedb.com>
  0 siblings, 1 reply; 14+ messages in thread

From: Keith Fiske @ 2015-05-02 01:20 UTC (permalink / raw)
  To: Marc Fromm <Marc.Fromm@wwu.edu>; +Cc: pgsql-admin

On Fri, May 1, 2015 at 6:39 PM, Marc Fromm <Marc.Fromm@wwu.edu> wrote:

>  I setup a server running postgresql-server-9.2.10-2.el7_1.x86_64. After
> restoring my databases form a system running
> postgresql-server-8.1.23-10.el5_10 (created with pg_dumpall), several blank
> databases/entries were created.
>
> When I list the database from the command line it shows several entries
> like:
>
>                          |          |           |         |       |
> =T/postgres
>
>
>
> After importing the databases is there a cleanup command of some sort?
>
> These blank databases/entries do not show in PhpPgAdmin, yet my backup
> script tries to backup a database called “|”
>
>
>
> Thanks
>
>
>
> Marc
>
>
>
>
>

Did you run the 9.2 version of pg_dumpall or the 8.1 version to create your
original dump file? You should run the 9.2 version on the 8.1 database if
possible.

--
Keith Fiske
Database Administrator
OmniTI Computer Consulting, Inc.
http://www.keithf4.com

^ permalink  raw  reply  [nested|flat] 14+ messages in thread

* Re: migrating to 9.2 created blank dbs
  2015-05-01 22:39 migrating to 9.2 created blank dbs Marc Fromm <Marc.Fromm@wwu.edu>
  2015-05-02 01:20 ` Re: migrating to 9.2 created blank dbs Keith Fiske <keith@omniti.com>
@ 2015-05-02 07:11   ` Raghavendra <raghavendra.rao@enterprisedb.com>
  2015-05-04 14:59     ` Re: migrating to 9.2 created blank dbs Marc Fromm <Marc.Fromm@wwu.edu>
  0 siblings, 1 reply; 14+ messages in thread

From: Raghavendra @ 2015-05-02 07:11 UTC (permalink / raw)
  To: Keith Fiske <keith@omniti.com>; +Cc: Marc Fromm <Marc.Fromm@wwu.edu>; pgsql-admin

>
>
> On Fri, May 1, 2015 at 6:39 PM, Marc Fromm <Marc.Fromm@wwu.edu> wrote:
>
>>  I setup a server running postgresql-server-9.2.10-2.el7_1.x86_64. After
>> restoring my databases form a system running
>> postgresql-server-8.1.23-10.el5_10 (created with pg_dumpall), several blank
>> databases/entries were created.
>>
>> When I list the database from the command line it shows several entries
>> like:
>>
>>                          |          |           |         |       |
>> =T/postgres
>>
>>
>>
>> After importing the databases is there a cleanup command of some sort?
>>
>> These blank databases/entries do not show in PhpPgAdmin, yet my backup
>> script tries to backup a database called “|”
>>
>
​Is this behaviour, after you have imported the databases and ANALYZE
cluster ?. By-chance if you have missed to performe ANALYZE ​on post
import, please do it.

Did you run the 9.2 version of pg_dumpall or the 8.1 version to create your
> original dump file? You should run the 9.2 version on the 8.1 database if
> possible.
>
>
​+1

---
Regards,
Raghavendra
EnterpriseDB Corporation
Blog: http://raghavt.blogspot.com/​

^ permalink  raw  reply  [nested|flat] 14+ messages in thread

* Re: migrating to 9.2 created blank dbs
  2015-05-01 22:39 migrating to 9.2 created blank dbs Marc Fromm <Marc.Fromm@wwu.edu>
  2015-05-02 01:20 ` Re: migrating to 9.2 created blank dbs Keith Fiske <keith@omniti.com>
  2015-05-02 07:11   ` Re: migrating to 9.2 created blank dbs Raghavendra <raghavendra.rao@enterprisedb.com>
@ 2015-05-04 14:59     ` Marc Fromm <Marc.Fromm@wwu.edu>
  2015-05-04 15:18       ` Re: migrating to 9.2 created blank dbs Keith <keith@keithf4.com>
  2015-05-04 16:05       ` Re: migrating to 9.2 created blank dbs Gilberto Castillo <gilberto.castillo@etecsa.cu>
  0 siblings, 2 replies; 14+ messages in thread

From: Marc Fromm @ 2015-05-04 14:59 UTC (permalink / raw)
  To: Raghavendra <raghavendra.rao@enterprisedb.com>; Keith Fiske <keith@omniti.com>; +Cc: pgsql-admin

I ran vacuumdb --all --analyze but the blank entries remain in the list of databases.

How do I run 9.2 version of pg_dumpall on a system running postgresql 8.1?

Thanks for the replies.

Marc


From: Raghavendra [mailto:raghavendra.rao@enterprisedb.com]
Sent: Saturday, May 02, 2015 12:11 AM
To: Keith Fiske
Cc: Marc Fromm; pgsql-admin@postgresql.org
Subject: Re: [ADMIN] migrating to 9.2 created blank dbs


On Fri, May 1, 2015 at 6:39 PM, Marc Fromm <Marc.Fromm@wwu.edu<mailto:Marc.Fromm@wwu.edu>> wrote:
I setup a server running postgresql-server-9.2.10-2.el7_1.x86_64. After restoring my databases form a system running postgresql-server-8.1.23-10.el5_10 (created with pg_dumpall), several blank databases/entries were created.
When I list the database from the command line it shows several entries like:
                         |          |           |         |       | =T/postgres

After importing the databases is there a cleanup command of some sort?
These blank databases/entries do not show in PhpPgAdmin, yet my backup script tries to backup a database called “|”

​Is this behaviour, after you have imported the databases and ANALYZE cluster ?. By-chance if you have missed to performe ANALYZE ​on post import, please do it.

Did you run the 9.2 version of pg_dumpall or the 8.1 version to create your original dump file? You should run the 9.2 version on the 8.1 database if possible.

​+1

---
Regards,
Raghavendra
EnterpriseDB Corporation
Blog: http://raghavt.blogspot.com/​




^ permalink  raw  reply  [nested|flat] 14+ messages in thread

* Re: migrating to 9.2 created blank dbs
  2015-05-01 22:39 migrating to 9.2 created blank dbs Marc Fromm <Marc.Fromm@wwu.edu>
  2015-05-02 01:20 ` Re: migrating to 9.2 created blank dbs Keith Fiske <keith@omniti.com>
  2015-05-02 07:11   ` Re: migrating to 9.2 created blank dbs Raghavendra <raghavendra.rao@enterprisedb.com>
  2015-05-04 14:59     ` Re: migrating to 9.2 created blank dbs Marc Fromm <Marc.Fromm@wwu.edu>
@ 2015-05-04 15:18       ` Keith <keith@keithf4.com>
  2015-05-04 16:07         ` Re: migrating to 9.2 created blank dbs Tom Lane <tgl@sss.pgh.pa.us>
  2015-05-04 16:41         ` Re: migrating to 9.2 created blank dbs Marc Fromm <Marc.Fromm@wwu.edu>
  1 sibling, 2 replies; 14+ messages in thread

From: Keith @ 2015-05-04 15:18 UTC (permalink / raw)
  To: Marc Fromm <Marc.Fromm@wwu.edu>; +Cc: Raghavendra <raghavendra.rao@enterprisedb.com>; Keith Fiske <keith@omniti.com>; pgsql-admin

Going by your package name, I'm assuming you're running Red Hat or CentOS.
Running both 8.1 and 9.2 at the same time on that OS could be a bit tricky
and this isn't really the proper medium for discussing how to do so.

What you could do is copy the 9.2 pg_dumpall binary from the machine you
have it installed on now and put it on the other machine. As long as
they're the same OS/architecture that should work fine. The other option is
to open up a network connection between the two systems and allow
pg_dumpall from the 9.2 system to connect to 8.1 on the old system.


On Mon, May 4, 2015 at 10:59 AM, Marc Fromm <Marc.Fromm@wwu.edu> wrote:

>  I ran vacuumdb --all --analyze but the blank entries remain in the list
> of databases.
>
>
>
> How do I run 9.2 version of pg_dumpall on a system running postgresql 8.1?
>
>
>
> Thanks for the replies.
>
>
>
> Marc
>
>
>
>
>
> *From:* Raghavendra [mailto:raghavendra.rao@enterprisedb.com]
> *Sent:* Saturday, May 02, 2015 12:11 AM
> *To:* Keith Fiske
> *Cc:* Marc Fromm; pgsql-admin@postgresql.org
> *Subject:* Re: [ADMIN] migrating to 9.2 created blank dbs
>
>
>
>
> On Fri, May 1, 2015 at 6:39 PM, Marc Fromm <Marc.Fromm@wwu.edu> wrote:
>
>  I setup a server running postgresql-server-9.2.10-2.el7_1.x86_64. After
> restoring my databases form a system running
> postgresql-server-8.1.23-10.el5_10 (created with pg_dumpall), several blank
> databases/entries were created.
>
> When I list the database from the command line it shows several entries
> like:
>
>                          |          |           |         |       |
> =T/postgres
>
>
>
> After importing the databases is there a cleanup command of some sort?
>
> These blank databases/entries do not show in PhpPgAdmin, yet my backup
> script tries to backup a database called “|”
>
>
>
> ​Is this behaviour, after you have imported the databases and ANALYZE
> cluster ?. By-chance if you have missed to performe ANALYZE ​on post
> import, please do it.
>
>
>
>  Did you run the 9.2 version of pg_dumpall or the 8.1 version to create
> your original dump file? You should run the 9.2 version on the 8.1 database
> if possible.
>
>
>
> ​+1
>
>
>
> ---
>
> Regards,
>
> Raghavendra
>
> EnterpriseDB Corporation
>
> Blog: http://raghavt.blogspot.com/​
>
>
>
>
>

^ permalink  raw  reply  [nested|flat] 14+ messages in thread

* Re: migrating to 9.2 created blank dbs
  2015-05-01 22:39 migrating to 9.2 created blank dbs Marc Fromm <Marc.Fromm@wwu.edu>
  2015-05-02 01:20 ` Re: migrating to 9.2 created blank dbs Keith Fiske <keith@omniti.com>
  2015-05-02 07:11   ` Re: migrating to 9.2 created blank dbs Raghavendra <raghavendra.rao@enterprisedb.com>
  2015-05-04 14:59     ` Re: migrating to 9.2 created blank dbs Marc Fromm <Marc.Fromm@wwu.edu>
  2015-05-04 15:18       ` Re: migrating to 9.2 created blank dbs Keith <keith@keithf4.com>
@ 2015-05-04 16:07         ` Tom Lane <tgl@sss.pgh.pa.us>
  2015-05-04 16:24           ` Re: migrating to 9.2 created blank dbs Marc Fromm <Marc.Fromm@wwu.edu>
  1 sibling, 1 reply; 14+ messages in thread

From: Tom Lane @ 2015-05-04 16:07 UTC (permalink / raw)
  To: Keith <keith@keithf4.com>; +Cc: Marc Fromm <Marc.Fromm@wwu.edu>; Raghavendra <raghavendra.rao@enterprisedb.com>; Keith Fiske <keith@omniti.com>; pgsql-admin

> On Fri, May 1, 2015 at 6:39 PM, Marc Fromm <Marc.Fromm@wwu.edu> wrote:
>> I setup a server running postgresql-server-9.2.10-2.el7_1.x86_64. After
>> restoring my databases form a system running
>> postgresql-server-8.1.23-10.el5_10 (created with pg_dumpall), several blank
>> databases/entries were created.

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
online it would be interesting to connect to it manually and see what
you get from "select * from pg_database".

			regards, tom lane


-- 
Sent via pgsql-admin mailing list (pgsql-admin@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-admin



^ permalink  raw  reply  [nested|flat] 14+ messages in thread

* Re: migrating to 9.2 created blank dbs
  2015-05-01 22:39 migrating to 9.2 created blank dbs Marc Fromm <Marc.Fromm@wwu.edu>
  2015-05-02 01:20 ` Re: migrating to 9.2 created blank dbs Keith Fiske <keith@omniti.com>
  2015-05-02 07:11   ` Re: migrating to 9.2 created blank dbs Raghavendra <raghavendra.rao@enterprisedb.com>
  2015-05-04 14:59     ` Re: migrating to 9.2 created blank dbs Marc Fromm <Marc.Fromm@wwu.edu>
  2015-05-04 15:18       ` Re: migrating to 9.2 created blank dbs Keith <keith@keithf4.com>
  2015-05-04 16:07         ` Re: migrating to 9.2 created blank dbs Tom Lane <tgl@sss.pgh.pa.us>
@ 2015-05-04 16:24           ` Marc Fromm <Marc.Fromm@wwu.edu>
  2015-05-04 16:40             ` Re: migrating to 9.2 created blank dbs Jeff Frost <jeff@pgexperts.com>
  0 siblings, 1 reply; 14+ messages in thread

From: Marc Fromm @ 2015-05-04 16:24 UTC (permalink / raw)
  To: Tom Lane <tgl@sss.pgh.pa.us>; Keith <keith@keithf4.com>; +Cc: Raghavendra <raghavendra.rao@enterprisedb.com>; Keith Fiske <keith@omniti.com>; pgsql-admin

Running the select statement gives me a list of all my databases. The only thing that looks suspicious are a few databases have stuff like this in the datacl column " {postgres=CT/postgres,=T/postgres}". The number of databases with that is suspiciously equal to the number of blanks created.

Marc

-----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

> On Fri, May 1, 2015 at 6:39 PM, Marc Fromm <Marc.Fromm@wwu.edu> wrote:
>> I setup a server running postgresql-server-9.2.10-2.el7_1.x86_64. 
>> After restoring my databases form a system running
>> postgresql-server-8.1.23-10.el5_10 (created with pg_dumpall), several 
>> blank databases/entries were created.

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 online it would be interesting to connect to it manually and see what you get from "select * from pg_database".

			regards, tom lane


-- 
Sent via pgsql-admin mailing list (pgsql-admin@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-admin



^ permalink  raw  reply  [nested|flat] 14+ messages in thread

* Re: migrating to 9.2 created blank dbs
  2015-05-01 22:39 migrating to 9.2 created blank dbs Marc Fromm <Marc.Fromm@wwu.edu>
  2015-05-02 01:20 ` Re: migrating to 9.2 created blank dbs Keith Fiske <keith@omniti.com>
  2015-05-02 07:11   ` Re: migrating to 9.2 created blank dbs Raghavendra <raghavendra.rao@enterprisedb.com>
  2015-05-04 14:59     ` Re: migrating to 9.2 created blank dbs Marc Fromm <Marc.Fromm@wwu.edu>
  2015-05-04 15:18       ` Re: migrating to 9.2 created blank dbs Keith <keith@keithf4.com>
  2015-05-04 16:07         ` Re: migrating to 9.2 created blank dbs Tom Lane <tgl@sss.pgh.pa.us>
  2015-05-04 16:24           ` Re: migrating to 9.2 created blank dbs Marc Fromm <Marc.Fromm@wwu.edu>
@ 2015-05-04 16:40             ` Jeff Frost <jeff@pgexperts.com>
  2015-05-04 17:12               ` Re: migrating to 9.2 created blank dbs Jeff Frost <jeff@pgexperts.com>
  2015-05-04 17:14               ` Re: migrating to 9.2 created blank dbs Marc Fromm <Marc.Fromm@wwu.edu>
  0 siblings, 2 replies; 14+ messages in thread

From: Jeff Frost @ 2015-05-04 16:40 UTC (permalink / raw)
  To: Marc Fromm <Marc.Fromm@wwu.edu>; +Cc: Tom Lane <tgl@sss.pgh.pa.us>; Keith <keith@keithf4.com>; Raghavendra <raghavendra.rao@enterprisedb.com>; Keith Fiske <keith@omniti.com>; pgsql-admin

Any chance you’re just misinterpreting the new more verbose output of psql’s \l command?

Nowadays, it looks like this:

postgres=# \l
                                List of databases
     Name      |   Owner    | Encoding | Collate | Ctype |   Access privileges
---------------+------------+----------+---------+-------+-----------------------
 postgres      | postgres   | UTF8     | C       | C     |
 template0     | postgres   | UTF8     | C       | C     | =c/postgres          +
               |            |          |         |       | postgres=CTc/postgres
 template1     | postgres   | UTF8     | C       | C     | =c/postgres          +
               |            |          |         |       | postgres=CTc/postgres
(4 rows)

But there are still only 3 databases being listed above.  

> On May 4, 2015, at 9:24 AM, Marc Fromm <Marc.Fromm@wwu.edu> wrote:
> 
> Running the select statement gives me a list of all my databases. The only thing that looks suspicious are a few databases have stuff like this in the datacl column " {postgres=CT/postgres,=T/postgres}". The number of databases with that is suspiciously equal to the number of blanks created.
> 
> Marc
> 
> -----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
> 
>> On Fri, May 1, 2015 at 6:39 PM, Marc Fromm <Marc.Fromm@wwu.edu> wrote:
>>> I setup a server running postgresql-server-9.2.10-2.el7_1.x86_64. 
>>> After restoring my databases form a system running
>>> postgresql-server-8.1.23-10.el5_10 (created with pg_dumpall), several 
>>> blank databases/entries were created.
> 
> 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 online it would be interesting to connect to it manually and see what you get from "select * from pg_database”.




-- 
Sent via pgsql-admin mailing list (pgsql-admin@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-admin



^ permalink  raw  reply  [nested|flat] 14+ messages in thread

* Re: migrating to 9.2 created blank dbs
  2015-05-01 22:39 migrating to 9.2 created blank dbs Marc Fromm <Marc.Fromm@wwu.edu>
  2015-05-02 01:20 ` Re: migrating to 9.2 created blank dbs Keith Fiske <keith@omniti.com>
  2015-05-02 07:11   ` Re: migrating to 9.2 created blank dbs Raghavendra <raghavendra.rao@enterprisedb.com>
  2015-05-04 14:59     ` Re: migrating to 9.2 created blank dbs Marc Fromm <Marc.Fromm@wwu.edu>
  2015-05-04 15:18       ` Re: migrating to 9.2 created blank dbs Keith <keith@keithf4.com>
  2015-05-04 16:07         ` Re: migrating to 9.2 created blank dbs Tom Lane <tgl@sss.pgh.pa.us>
  2015-05-04 16:24           ` Re: migrating to 9.2 created blank dbs Marc Fromm <Marc.Fromm@wwu.edu>
  2015-05-04 16:40             ` Re: migrating to 9.2 created blank dbs Jeff Frost <jeff@pgexperts.com>
@ 2015-05-04 17:12               ` Jeff Frost <jeff@pgexperts.com>
  1 sibling, 0 replies; 14+ messages in thread

From: Jeff Frost @ 2015-05-04 17:12 UTC (permalink / raw)
  To: Marc Fromm <Marc.Fromm@wwu.edu>; +Cc: pgsql-admin

My guess is the script is just using:

psql -l | awk ‘{print $1}’

To get the list of DBs to backup instead of:

psql -c “SELECT datname from pg_database”


Can you share the script?


> On May 4, 2015, at 9:43 AM, Marc Fromm <Marc.Fromm@wwu.edu> wrote:
> 
> 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 "|"?
> 
> Thanks
> 
> -----Original Message-----
> From: Jeff Frost [mailto:jeff@pgexperts.com] 
> 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
> 
> Any chance you’re just misinterpreting the new more verbose output of psql’s \l command?
> 
> Nowadays, it looks like this:
> 
> postgres=# \l
>                                List of databases
>     Name      |   Owner    | Encoding | Collate | Ctype |   Access privileges
> ---------------+------------+----------+---------+-------+--------------
> ---------------+------------+----------+---------+-------+---------
> postgres      | postgres   | UTF8     | C       | C     |
> template0     | postgres   | UTF8     | C       | C     | =c/postgres          +
>               |            |          |         |       | postgres=CTc/postgres
> template1     | postgres   | UTF8     | C       | C     | =c/postgres          +
>               |            |          |         |       | postgres=CTc/postgres
> (4 rows)
> 
> But there are still only 3 databases being listed above.  
> 
>> On May 4, 2015, at 9:24 AM, Marc Fromm <Marc.Fromm@wwu.edu> wrote:
>> 
>> Running the select statement gives me a list of all my databases. The only thing that looks suspicious are a few databases have stuff like this in the datacl column " {postgres=CT/postgres,=T/postgres}". The number of databases with that is suspiciously equal to the number of blanks created.
>> 
>> Marc
>> 
>> -----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
>> 
>>> On Fri, May 1, 2015 at 6:39 PM, Marc Fromm <Marc.Fromm@wwu.edu> wrote:
>>>> I setup a server running postgresql-server-9.2.10-2.el7_1.x86_64. 
>>>> After restoring my databases form a system running
>>>> postgresql-server-8.1.23-10.el5_10 (created with pg_dumpall), 
>>>> several blank databases/entries were created.
>> 
>> 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 online it would be interesting to connect to it manually and see what you get from "select * from pg_database”.
> 
> 

---
Jeff Frost <jeff@pgexperts.com>
CTO, PostgreSQL Experts, Inc.
Phone: 1-888-PG-EXPRT x506
FAX: 415-762-5122
http://www.pgexperts.com/ 





-- 
Sent via pgsql-admin mailing list (pgsql-admin@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-admin



^ permalink  raw  reply  [nested|flat] 14+ messages in thread

* Re: migrating to 9.2 created blank dbs
  2015-05-01 22:39 migrating to 9.2 created blank dbs Marc Fromm <Marc.Fromm@wwu.edu>
  2015-05-02 01:20 ` Re: migrating to 9.2 created blank dbs Keith Fiske <keith@omniti.com>
  2015-05-02 07:11   ` Re: migrating to 9.2 created blank dbs Raghavendra <raghavendra.rao@enterprisedb.com>
  2015-05-04 14:59     ` Re: migrating to 9.2 created blank dbs Marc Fromm <Marc.Fromm@wwu.edu>
  2015-05-04 15:18       ` Re: migrating to 9.2 created blank dbs Keith <keith@keithf4.com>
  2015-05-04 16:07         ` Re: migrating to 9.2 created blank dbs Tom Lane <tgl@sss.pgh.pa.us>
  2015-05-04 16:24           ` Re: migrating to 9.2 created blank dbs Marc Fromm <Marc.Fromm@wwu.edu>
  2015-05-04 16:40             ` Re: migrating to 9.2 created blank dbs Jeff Frost <jeff@pgexperts.com>
@ 2015-05-04 17:14               ` Marc Fromm <Marc.Fromm@wwu.edu>
  2015-05-04 17:28                 ` Re: migrating to 9.2 created blank dbs Jeff Frost <jeff@pgexperts.com>
  1 sibling, 1 reply; 14+ messages in thread

From: Marc Fromm @ 2015-05-04 17:14 UTC (permalink / raw)
  To: Jeff Frost <jeff@pgexperts.com>; +Cc: Tom Lane <tgl@sss.pgh.pa.us>; Keith <keith@keithf4.com>; Raghavendra <raghavendra.rao@enterprisedb.com>; Keith Fiske <keith@omniti.com>; pgsql-admin

It has been suggested that I am misinterpreting the verbose output, which is very possible. Is the problem then with my backup script that works fine in 8.1 but needs a tweak to ignore whatever is triggering the attempt to create a backup called "|"?

It appears that only after databases with the extra stuff at the end is when a file is created called "|"

Databases (/l command):
manuals                 | postgres | LATIN1    | C       | C     | =CTc/postgres        +
                       	  |          |           |         |       |                       postgres=CT/postgres
 marctestdb          | postgres | SQL_ASCII | C       | C     |
 mattdb                  | postgres | SQL_ASCII | C       | C     |
 mydb                      | postgres | SQL_ASCII | C       | C     | =Tc/postgres         +
                         		|          |           |         |       |               postgres=CT/postgres
 nasfaa                  | postgres | SQL_ASCII | C       | C     |

Backup log:
Backup and Vacuum complete at 13:21:09-2015-05-01 for time slot 05-01-2015_13-21 on database: manuals 
Backup and Vacuum complete at 13:21:09-2015-05-01 for time slot 05-01-2015_13-21 on database: | 
Backup and Vacuum complete at 13:21:09-2015-05-01 for time slot 05-01-2015_13-21 on database: marctestdb 
Backup and Vacuum complete at 13:21:09-2015-05-01 for time slot 05-01-2015_13-21 on database: mattdb 
Backup and Vacuum complete at 13:21:10-2015-05-01 for time slot 05-01-2015_13-21 on database: mydb 
Backup and Vacuum complete at 13:21:10-2015-05-01 for time slot 05-01-2015_13-21 on database: | 
Backup and Vacuum complete at 13:21:10-2015-05-01 for time slot 05-01-2015_13-21 on database: nasfaa

Script:
#!/bin/bash
# Location of the backup logfile.
logfile="/var/lib/pgsql/backups/logs/pg_back.log"
# Location to place backups.
backup_dir="/var/lib/pgsql/backups"
touch $logfile
timeslot=`date +%m-%d-%Y_%H-%M`
databases=`psql -h localhost -U postgres -q -c "\l" | sed -n 4,/\eof/p | grep -v rows\) | awk {'print $1'}`

for i in $databases; do
   timeinfo=`date '+%T-%F'`
   echo "Backup and Vacuum complete at $timeinfo for time slot $timeslot on database: $i " >> $logfile
   /usr/bin/vacuumdb -z -h localhost -U postgres $i >/dev/null 2>&1
   /usr/bin/pg_dump $i -ch 127.0.0.1 -U postgres | gzip > "$backup_dir/postgresql-$i-$timeslot-database.gz"
Done

-----Original Message-----
From: Jeff Frost [mailto:jeff@pgexperts.com] 
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

Any chance you’re just misinterpreting the new more verbose output of psql’s \l command?

Nowadays, it looks like this:

postgres=# \l
                                List of databases
     Name      |   Owner    | Encoding | Collate | Ctype |   Access privileges
---------------+------------+----------+---------+-------+--------------
---------------+------------+----------+---------+-------+---------
 postgres      | postgres   | UTF8     | C       | C     |
 template0     | postgres   | UTF8     | C       | C     | =c/postgres          +
               |            |          |         |       | postgres=CTc/postgres
 template1     | postgres   | UTF8     | C       | C     | =c/postgres          +
               |            |          |         |       | postgres=CTc/postgres
(4 rows)

But there are still only 3 databases being listed above.  

> On May 4, 2015, at 9:24 AM, Marc Fromm <Marc.Fromm@wwu.edu> wrote:
> 
> Running the select statement gives me a list of all my databases. The only thing that looks suspicious are a few databases have stuff like this in the datacl column " {postgres=CT/postgres,=T/postgres}". The number of databases with that is suspiciously equal to the number of blanks created.
> 
> Marc
> 
> -----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
> 
>> On Fri, May 1, 2015 at 6:39 PM, Marc Fromm <Marc.Fromm@wwu.edu> wrote:
>>> I setup a server running postgresql-server-9.2.10-2.el7_1.x86_64. 
>>> After restoring my databases form a system running
>>> postgresql-server-8.1.23-10.el5_10 (created with pg_dumpall), 
>>> several blank databases/entries were created.
> 
> 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 online it would be interesting to connect to it manually and see what you get from "select * from pg_database”.



-- 
Sent via pgsql-admin mailing list (pgsql-admin@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-admin


^ permalink  raw  reply  [nested|flat] 14+ messages in thread

* Re: migrating to 9.2 created blank dbs
  2015-05-01 22:39 migrating to 9.2 created blank dbs Marc Fromm <Marc.Fromm@wwu.edu>
  2015-05-02 01:20 ` Re: migrating to 9.2 created blank dbs Keith Fiske <keith@omniti.com>
  2015-05-02 07:11   ` Re: migrating to 9.2 created blank dbs Raghavendra <raghavendra.rao@enterprisedb.com>
  2015-05-04 14:59     ` Re: migrating to 9.2 created blank dbs Marc Fromm <Marc.Fromm@wwu.edu>
  2015-05-04 15:18       ` Re: migrating to 9.2 created blank dbs Keith <keith@keithf4.com>
  2015-05-04 16:07         ` Re: migrating to 9.2 created blank dbs Tom Lane <tgl@sss.pgh.pa.us>
  2015-05-04 16:24           ` Re: migrating to 9.2 created blank dbs Marc Fromm <Marc.Fromm@wwu.edu>
  2015-05-04 16:40             ` Re: migrating to 9.2 created blank dbs Jeff Frost <jeff@pgexperts.com>
  2015-05-04 17:14               ` Re: migrating to 9.2 created blank dbs Marc Fromm <Marc.Fromm@wwu.edu>
@ 2015-05-04 17:28                 ` Jeff Frost <jeff@pgexperts.com>
  2015-05-04 17:58                   ` Re: migrating to 9.2 created blank dbs Marc Fromm <Marc.Fromm@wwu.edu>
  0 siblings, 1 reply; 14+ messages in thread

From: Jeff Frost @ 2015-05-04 17:28 UTC (permalink / raw)
  To: Marc Fromm <Marc.Fromm@wwu.edu>; +Cc: Tom Lane <tgl@sss.pgh.pa.us>; Keith <keith@keithf4.com>; Raghavendra <raghavendra.rao@enterprisedb.com>; Keith Fiske <keith@omniti.com>; pgsql-admin

So, you want to change this line:

databases=`psql -h localhost -U postgres -q -c "\l" | sed -n 4,/\eof/p | grep -v rows\) | awk {'print $1’}`

to this:

psql -h localhost -U postgres -q --tuples-only --no-align -c "SELECT datname from pg_database”



> On May 4, 2015, at 10:14 AM, Marc Fromm <Marc.Fromm@wwu.edu> wrote:
> 
> It has been suggested that I am misinterpreting the verbose output, which is very possible. Is the problem then with my backup script that works fine in 8.1 but needs a tweak to ignore whatever is triggering the attempt to create a backup called "|"?
> 
> It appears that only after databases with the extra stuff at the end is when a file is created called "|"
> 
> Databases (/l command):
> manuals                 | postgres | LATIN1    | C       | C     | =CTc/postgres        +
>                       	  |          |           |         |       |                       postgres=CT/postgres
> marctestdb          | postgres | SQL_ASCII | C       | C     |
> mattdb                  | postgres | SQL_ASCII | C       | C     |
> mydb                      | postgres | SQL_ASCII | C       | C     | =Tc/postgres         +
>                         		|          |           |         |       |               postgres=CT/postgres
> nasfaa                  | postgres | SQL_ASCII | C       | C     |
> 
> Backup log:
> Backup and Vacuum complete at 13:21:09-2015-05-01 for time slot 05-01-2015_13-21 on database: manuals 
> Backup and Vacuum complete at 13:21:09-2015-05-01 for time slot 05-01-2015_13-21 on database: | 
> Backup and Vacuum complete at 13:21:09-2015-05-01 for time slot 05-01-2015_13-21 on database: marctestdb 
> Backup and Vacuum complete at 13:21:09-2015-05-01 for time slot 05-01-2015_13-21 on database: mattdb 
> Backup and Vacuum complete at 13:21:10-2015-05-01 for time slot 05-01-2015_13-21 on database: mydb 
> Backup and Vacuum complete at 13:21:10-2015-05-01 for time slot 05-01-2015_13-21 on database: | 
> Backup and Vacuum complete at 13:21:10-2015-05-01 for time slot 05-01-2015_13-21 on database: nasfaa
> 
> Script:
> #!/bin/bash
> # Location of the backup logfile.
> logfile="/var/lib/pgsql/backups/logs/pg_back.log"
> # Location to place backups.
> backup_dir="/var/lib/pgsql/backups"
> touch $logfile
> timeslot=`date +%m-%d-%Y_%H-%M`
> databases=`psql -h localhost -U postgres -q -c "\l" | sed -n 4,/\eof/p | grep -v rows\) | awk {'print $1'}`
> 
> for i in $databases; do
>   timeinfo=`date '+%T-%F'`
>   echo "Backup and Vacuum complete at $timeinfo for time slot $timeslot on database: $i " >> $logfile
>   /usr/bin/vacuumdb -z -h localhost -U postgres $i >/dev/null 2>&1
>   /usr/bin/pg_dump $i -ch 127.0.0.1 -U postgres | gzip > "$backup_dir/postgresql-$i-$timeslot-database.gz"
> Done
> 
> -----Original Message-----
> From: Jeff Frost [mailto:jeff@pgexperts.com] 
> 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
> 
> Any chance you’re just misinterpreting the new more verbose output of psql’s \l command?
> 
> Nowadays, it looks like this:
> 
> postgres=# \l
>                                List of databases
>     Name      |   Owner    | Encoding | Collate | Ctype |   Access privileges
> ---------------+------------+----------+---------+-------+--------------
> ---------------+------------+----------+---------+-------+---------
> postgres      | postgres   | UTF8     | C       | C     |
> template0     | postgres   | UTF8     | C       | C     | =c/postgres          +
>               |            |          |         |       | postgres=CTc/postgres
> template1     | postgres   | UTF8     | C       | C     | =c/postgres          +
>               |            |          |         |       | postgres=CTc/postgres
> (4 rows)
> 
> But there are still only 3 databases being listed above.  
> 
>> On May 4, 2015, at 9:24 AM, Marc Fromm <Marc.Fromm@wwu.edu> wrote:
>> 
>> Running the select statement gives me a list of all my databases. The only thing that looks suspicious are a few databases have stuff like this in the datacl column " {postgres=CT/postgres,=T/postgres}". The number of databases with that is suspiciously equal to the number of blanks created.
>> 
>> Marc
>> 
>> -----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
>> 
>>> On Fri, May 1, 2015 at 6:39 PM, Marc Fromm <Marc.Fromm@wwu.edu> wrote:
>>>> I setup a server running postgresql-server-9.2.10-2.el7_1.x86_64. 
>>>> After restoring my databases form a system running
>>>> postgresql-server-8.1.23-10.el5_10 (created with pg_dumpall), 
>>>> several blank databases/entries were created.
>> 
>> 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 online it would be interesting to connect to it manually and see what you get from "select * from pg_database”.
> 
> 
> 
> -- 
> Sent via pgsql-admin mailing list (pgsql-admin@postgresql.org)
> To make changes to your subscription:
> http://www.postgresql.org/mailpref/pgsql-admin

---
Jeff Frost <jeff@pgexperts.com>
CTO, PostgreSQL Experts, Inc.
Phone: 1-888-PG-EXPRT x506
FAX: 415-762-5122
http://www.pgexperts.com/ 





-- 
Sent via pgsql-admin mailing list (pgsql-admin@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-admin



^ permalink  raw  reply  [nested|flat] 14+ messages in thread

* Re: migrating to 9.2 created blank dbs
  2015-05-01 22:39 migrating to 9.2 created blank dbs Marc Fromm <Marc.Fromm@wwu.edu>
  2015-05-02 01:20 ` Re: migrating to 9.2 created blank dbs Keith Fiske <keith@omniti.com>
  2015-05-02 07:11   ` Re: migrating to 9.2 created blank dbs Raghavendra <raghavendra.rao@enterprisedb.com>
  2015-05-04 14:59     ` Re: migrating to 9.2 created blank dbs Marc Fromm <Marc.Fromm@wwu.edu>
  2015-05-04 15:18       ` Re: migrating to 9.2 created blank dbs Keith <keith@keithf4.com>
  2015-05-04 16:07         ` Re: migrating to 9.2 created blank dbs Tom Lane <tgl@sss.pgh.pa.us>
  2015-05-04 16:24           ` Re: migrating to 9.2 created blank dbs Marc Fromm <Marc.Fromm@wwu.edu>
  2015-05-04 16:40             ` Re: migrating to 9.2 created blank dbs Jeff Frost <jeff@pgexperts.com>
  2015-05-04 17:14               ` Re: migrating to 9.2 created blank dbs Marc Fromm <Marc.Fromm@wwu.edu>
  2015-05-04 17:28                 ` Re: migrating to 9.2 created blank dbs Jeff Frost <jeff@pgexperts.com>
@ 2015-05-04 17:58                   ` Marc Fromm <Marc.Fromm@wwu.edu>
  0 siblings, 0 replies; 14+ messages in thread

From: Marc Fromm @ 2015-05-04 17:58 UTC (permalink / raw)
  To: Jeff Frost <jeff@pgexperts.com>; +Cc: Tom Lane <tgl@sss.pgh.pa.us>; Keith <keith@keithf4.com>; Raghavendra <raghavendra.rao@enterprisedb.com>; Keith Fiske <keith@omniti.com>; pgsql-admin

Jeff's recommendation of changing how the script gets a list of databases solved the blank database backups called "|".

Thanks for everyone's responses.

Marc

-----Original Message-----
From: Jeff Frost [mailto:jeff@pgexperts.com] 
Sent: Monday, May 04, 2015 10:29 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

So, you want to change this line:

databases=`psql -h localhost -U postgres -q -c "\l" | sed -n 4,/\eof/p | grep -v rows\) | awk {'print $1’}`

to this:

psql -h localhost -U postgres -q --tuples-only --no-align -c "SELECT datname from pg_database”



> On May 4, 2015, at 10:14 AM, Marc Fromm <Marc.Fromm@wwu.edu> wrote:
> 
> It has been suggested that I am misinterpreting the verbose output, which is very possible. Is the problem then with my backup script that works fine in 8.1 but needs a tweak to ignore whatever is triggering the attempt to create a backup called "|"?
> 
> It appears that only after databases with the extra stuff at the end is when a file is created called "|"
> 
> Databases (/l command):
> manuals                 | postgres | LATIN1    | C       | C     | =CTc/postgres        +
>                       	  |          |           |         |       |                       postgres=CT/postgres
> marctestdb          | postgres | SQL_ASCII | C       | C     |
> mattdb                  | postgres | SQL_ASCII | C       | C     |
> mydb                      | postgres | SQL_ASCII | C       | C     | =Tc/postgres         +
>                         		|          |           |         |       |               postgres=CT/postgres
> nasfaa                  | postgres | SQL_ASCII | C       | C     |
> 
> Backup log:
> Backup and Vacuum complete at 13:21:09-2015-05-01 for time slot 
> 05-01-2015_13-21 on database: manuals Backup and Vacuum complete at 
> 13:21:09-2015-05-01 for time slot 05-01-2015_13-21 on database: | 
> Backup and Vacuum complete at 13:21:09-2015-05-01 for time slot 
> 05-01-2015_13-21 on database: marctestdb Backup and Vacuum complete at 
> 13:21:09-2015-05-01 for time slot 05-01-2015_13-21 on database: mattdb 
> Backup and Vacuum complete at 13:21:10-2015-05-01 for time slot 
> 05-01-2015_13-21 on database: mydb Backup and Vacuum complete at 
> 13:21:10-2015-05-01 for time slot 05-01-2015_13-21 on database: | 
> Backup and Vacuum complete at 13:21:10-2015-05-01 for time slot 
> 05-01-2015_13-21 on database: nasfaa
> 
> Script:
> #!/bin/bash
> # Location of the backup logfile.
> logfile="/var/lib/pgsql/backups/logs/pg_back.log"
> # Location to place backups.
> backup_dir="/var/lib/pgsql/backups"
> touch $logfile
> timeslot=`date +%m-%d-%Y_%H-%M`
> databases=`psql -h localhost -U postgres -q -c "\l" | sed -n 4,/\eof/p 
> | grep -v rows\) | awk {'print $1'}`
> 
> for i in $databases; do
>   timeinfo=`date '+%T-%F'`
>   echo "Backup and Vacuum complete at $timeinfo for time slot $timeslot on database: $i " >> $logfile
>   /usr/bin/vacuumdb -z -h localhost -U postgres $i >/dev/null 2>&1
>   /usr/bin/pg_dump $i -ch 127.0.0.1 -U postgres | gzip > "$backup_dir/postgresql-$i-$timeslot-database.gz"
> Done
> 
> -----Original Message-----
> From: Jeff Frost [mailto:jeff@pgexperts.com]
> 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
> 
> Any chance you’re just misinterpreting the new more verbose output of psql’s \l command?
> 
> Nowadays, it looks like this:
> 
> postgres=# \l
>                                List of databases
>     Name      |   Owner    | Encoding | Collate | Ctype |   Access privileges
> ---------------+------------+----------+---------+-------+------------
> ---------------+------------+----------+---------+-------+--
> ---------------+------------+----------+---------+-------+---------
> postgres      | postgres   | UTF8     | C       | C     |
> template0     | postgres   | UTF8     | C       | C     | =c/postgres          +
>               |            |          |         |       | postgres=CTc/postgres
> template1     | postgres   | UTF8     | C       | C     | =c/postgres          +
>               |            |          |         |       | postgres=CTc/postgres
> (4 rows)
> 
> But there are still only 3 databases being listed above.  
> 
>> On May 4, 2015, at 9:24 AM, Marc Fromm <Marc.Fromm@wwu.edu> wrote:
>> 
>> Running the select statement gives me a list of all my databases. The only thing that looks suspicious are a few databases have stuff like this in the datacl column " {postgres=CT/postgres,=T/postgres}". The number of databases with that is suspiciously equal to the number of blanks created.
>> 
>> Marc
>> 
>> -----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
>> 
>>> On Fri, May 1, 2015 at 6:39 PM, Marc Fromm <Marc.Fromm@wwu.edu> wrote:
>>>> I setup a server running postgresql-server-9.2.10-2.el7_1.x86_64. 
>>>> After restoring my databases form a system running
>>>> postgresql-server-8.1.23-10.el5_10 (created with pg_dumpall), 
>>>> several blank databases/entries were created.
>> 
>> 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 online it would be interesting to connect to it manually and see what you get from "select * from pg_database”.
> 
> 
> 
> --
> Sent via pgsql-admin mailing list (pgsql-admin@postgresql.org) To make 
> changes to your subscription:
> http://www.postgresql.org/mailpref/pgsql-admin

---
Jeff Frost <jeff@pgexperts.com>
CTO, PostgreSQL Experts, Inc.
Phone: 1-888-PG-EXPRT x506
FAX: 415-762-5122
http://www.pgexperts.com/ 




-- 
Sent via pgsql-admin mailing list (pgsql-admin@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-admin


^ permalink  raw  reply  [nested|flat] 14+ messages in thread

* Re: migrating to 9.2 created blank dbs
  2015-05-01 22:39 migrating to 9.2 created blank dbs Marc Fromm <Marc.Fromm@wwu.edu>
  2015-05-02 01:20 ` Re: migrating to 9.2 created blank dbs Keith Fiske <keith@omniti.com>
  2015-05-02 07:11   ` Re: migrating to 9.2 created blank dbs Raghavendra <raghavendra.rao@enterprisedb.com>
  2015-05-04 14:59     ` Re: migrating to 9.2 created blank dbs Marc Fromm <Marc.Fromm@wwu.edu>
  2015-05-04 15:18       ` Re: migrating to 9.2 created blank dbs Keith <keith@keithf4.com>
@ 2015-05-04 16:41         ` Marc Fromm <Marc.Fromm@wwu.edu>
  1 sibling, 0 replies; 14+ messages in thread

From: Marc Fromm @ 2015-05-04 16:41 UTC (permalink / raw)
  To: Keith <keith@keithf4.com>; +Cc: Raghavendra <raghavendra.rao@enterprisedb.com>; Keith Fiske <keith@omniti.com>; pgsql-admin

I successfully did the pg_dumpall from the 9.2 server (separate box) of the 8.1 server. After restoring the dumped file the blank entries remain.

Marc

From: Keith [mailto:keith@keithf4.com]
Sent: Monday, May 04, 2015 8:18 AM
To: Marc Fromm
Cc: Raghavendra; Keith Fiske; pgsql-admin@postgresql.org
Subject: Re: [ADMIN] migrating to 9.2 created blank dbs

Going by your package name, I'm assuming you're running Red Hat or CentOS. Running both 8.1 and 9.2 at the same time on that OS could be a bit tricky and this isn't really the proper medium for discussing how to do so.
What you could do is copy the 9.2 pg_dumpall binary from the machine you have it installed on now and put it on the other machine. As long as they're the same OS/architecture that should work fine. The other option is to open up a network connection between the two systems and allow pg_dumpall from the 9.2 system to connect to 8.1 on the old system.

On Mon, May 4, 2015 at 10:59 AM, Marc Fromm <Marc.Fromm@wwu.edu<mailto:Marc.Fromm@wwu.edu>> wrote:
I ran vacuumdb --all --analyze but the blank entries remain in the list of databases.

How do I run 9.2 version of pg_dumpall on a system running postgresql 8.1?

Thanks for the replies.

Marc


From: Raghavendra [mailto:raghavendra.rao@enterprisedb.com<mailto:raghavendra.rao@enterprisedb.com>]
Sent: Saturday, May 02, 2015 12:11 AM
To: Keith Fiske
Cc: Marc Fromm; pgsql-admin@postgresql.org<mailto:pgsql-admin@postgresql.org>
Subject: Re: [ADMIN] migrating to 9.2 created blank dbs


On Fri, May 1, 2015 at 6:39 PM, Marc Fromm <Marc.Fromm@wwu.edu<mailto:Marc.Fromm@wwu.edu>> wrote:
I setup a server running postgresql-server-9.2.10-2.el7_1.x86_64. After restoring my databases form a system running postgresql-server-8.1.23-10.el5_10 (created with pg_dumpall), several blank databases/entries were created.
When I list the database from the command line it shows several entries like:
                         |          |           |         |       | =T/postgres

After importing the databases is there a cleanup command of some sort?
These blank databases/entries do not show in PhpPgAdmin, yet my backup script tries to backup a database called “|”

​Is this behaviour, after you have imported the databases and ANALYZE cluster ?. By-chance if you have missed to performe ANALYZE ​on post import, please do it.

Did you run the 9.2 version of pg_dumpall or the 8.1 version to create your original dump file? You should run the 9.2 version on the 8.1 database if possible.

​+1

---
Regards,
Raghavendra
EnterpriseDB Corporation
Blog: http://raghavt.blogspot.com/​





^ permalink  raw  reply  [nested|flat] 14+ messages in thread

* Re: migrating to 9.2 created blank dbs
  2015-05-01 22:39 migrating to 9.2 created blank dbs Marc Fromm <Marc.Fromm@wwu.edu>
  2015-05-02 01:20 ` Re: migrating to 9.2 created blank dbs Keith Fiske <keith@omniti.com>
  2015-05-02 07:11   ` Re: migrating to 9.2 created blank dbs Raghavendra <raghavendra.rao@enterprisedb.com>
  2015-05-04 14:59     ` Re: migrating to 9.2 created blank dbs Marc Fromm <Marc.Fromm@wwu.edu>
@ 2015-05-04 16:05       ` Gilberto Castillo <gilberto.castillo@etecsa.cu>
  1 sibling, 0 replies; 14+ messages in thread

From: Gilberto Castillo @ 2015-05-04 16:05 UTC (permalink / raw)
  To: Marc Fromm <Marc.Fromm@wwu.edu>; +Cc: Raghavendra <raghavendra.rao@enterprisedb.com>; Keith Fiske <keith@omniti.com>; pgsql-admin



> I ran vacuumdb --all --analyze but the blank entries remain in the list of
> databases.
>
> How do I run 9.2 version of pg_dumpall on a system running postgresql
> 8.1?
>
> Thanks for the replies.
>
> Marc

Hello Marc,

Use,

pg_dumpall -h ip -U user_name -p port_data


Saludos,
Gilberto Castillo
ETECSA, La Habana, Cuba
--- 
This message was processed by Kaspersky Mail Gateway 5.6.28/RELEASE running at host imx3.etecsa.cu
Visit our web-site: <http://www.kaspersky.com;, <http://www.viruslist.com;

-- 
Sent via pgsql-admin mailing list (pgsql-admin@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-admin

^ permalink  raw  reply  [nested|flat] 14+ messages in thread


end of thread, other threads:[~2015-05-04 17:58 UTC | newest]

Thread overview: 14+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2015-05-01 22:39 migrating to 9.2 created blank dbs Marc Fromm <Marc.Fromm@wwu.edu>
2015-05-02 01:20 ` Keith Fiske <keith@omniti.com>
2015-05-02 07:11   ` Raghavendra <raghavendra.rao@enterprisedb.com>
2015-05-04 14:59     ` Marc Fromm <Marc.Fromm@wwu.edu>
2015-05-04 15:18       ` Keith <keith@keithf4.com>
2015-05-04 16:07         ` Tom Lane <tgl@sss.pgh.pa.us>
2015-05-04 16:24           ` Marc Fromm <Marc.Fromm@wwu.edu>
2015-05-04 16:40             ` Jeff Frost <jeff@pgexperts.com>
2015-05-04 17:12               ` Jeff Frost <jeff@pgexperts.com>
2015-05-04 17:14               ` Marc Fromm <Marc.Fromm@wwu.edu>
2015-05-04 17:28                 ` Jeff Frost <jeff@pgexperts.com>
2015-05-04 17:58                   ` Marc Fromm <Marc.Fromm@wwu.edu>
2015-05-04 16:41         ` Marc Fromm <Marc.Fromm@wwu.edu>
2015-05-04 16:05       ` Gilberto Castillo <gilberto.castillo@etecsa.cu>

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