Pantek Library
Hosting Provided By
CybrHost
High Speed Hosting

Re: [GENERAL] 2 versions running & using pg_dumpall

From: Tom Lane <tgl(at)sss.pgh.pa.us>
Date: Thu Oct 25 2007 - 16:57:37 EDT


Ralph Smith <smithrn@u.washington.edu> writes:
> On Oct 25, 2007, at 1:09 PM, Tom Lane wrote:
>> Ummm ... those are the column headings for 8.2 pg_database, not 7.4. >> You're looking at the wrong postmaster.

> postgres@smithrn-ltb1:/usr/lib/postgresql/7.4/bin$ ./psql
> Welcome to psql 7.4.13, the PostgreSQL interactive terminal.

> Type: \copyright for distribution terms
> \h for help with SQL commands
> \? for help on internal slash commands
> \g or terminate with semicolon to execute query
> \q to quit

> postgres=# select * from pg_database ;
> datname | datdba | encoding | datistemplate | datallowconn |
> datconnlimit | datlastsysoid | datfrozenxid | dattablespace |
> datconfig | datacl

Still the wrong column headings :-(. What you have above is a 7.4 psql connecting to an 8.2 postmaster, no doubt because the default port number wired into it is the 8.2 installation's not the 7.4 one's. You'll need to explicitly give a -p switch to psql to connect to the correct postmaster.

                        regards, tom lane

---------------------------(end of broadcast)---------------------------
TIP 9: In versions below 8.0, the planner will ignore your desire to
       choose an index scan if your joining column's datatypes do not
       match
Received on Thu Oct 25 17:01:17 2007

This archive was generated by hypermail 2.1.8 : Mon Jun 16 2008 - 18:53:46 EDT


Contact Us  Legal Notices  Order Services Online 
Pantek Home  Privacy Policy  IT news  Site Map  Pantek Library