pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
BUG #6694: 9.2 beta 2 : psql commands \db and \db+ fail
4+ messages / 4 participants
[nested] [flat]

* BUG #6694: 9.2 beta 2 : psql commands \db and \db+ fail
@ 2012-06-13 19:17  phb.emaj@free.fr
  0 siblings, 1 reply; 4+ messages in thread

From: phb.emaj@free.fr @ 2012-06-13 19:17 UTC (permalink / raw)
  To: pgsql-bugs

The following bug has been logged on the website:

Bug reference:      6694
Logged by:          Philippe Beaudoin
Email address:      phb.emaj@free.fr
PostgreSQL version: Unsupported/Unknown
Operating system:   linux
Description:        

Using the latest 9.2 beta 2 version, I got an error when issuing \db or \db+
psql command.

paf=# select version();

                                                 version                    
                             

----------------------------------------------------------------------------------------------------------

 PostgreSQL 9.2beta2 on i686-pc-linux-gnu, compiled by gcc (GCC) 4.4.0
20090506 (Red Hat 4.4.0-4), 32-bit

(1 row)



paf=# \db

ERROR:  column "spclocation" does not exist

LINE 3:   spclocation AS "Location"

          ^

paf=# \db+

ERROR:  column "spclocation" does not exist

LINE 3:   spclocation AS "Location",

          ^
I presume this is linked to the "Remove the spclocation field from
pg_tablespace" item of the release notes
and that something like the new pg_tablespace_location() function should be
used by psql.

Regards. Philippe.




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

* Re: BUG #6694: 9.2 beta 2 : psql commands \db and \db+ fail
@ 2012-06-14 20:34  Ryan Kelly <rpkelly22@gmail.com>
  parent: phb.emaj@free.fr
  0 siblings, 1 reply; 4+ messages in thread

From: Ryan Kelly @ 2012-06-14 20:34 UTC (permalink / raw)
  To: phb.emaj@free.fr; +Cc: pgsql-bugs

On Wed, Jun 13, 2012 at 07:17:11PM +0000, phb.emaj@free.fr wrote:
> The following bug has been logged on the website:
> 
> Bug reference:      6694
> Logged by:          Philippe Beaudoin
> Email address:      phb.emaj@free.fr
> PostgreSQL version: Unsupported/Unknown
> Operating system:   linux
> Description:        
> 
> Using the latest 9.2 beta 2 version, I got an error when issuing \db or \db+
> psql command.
> 
> paf=# select version();
> 
>                                                  version                    
>                              
> 
> ----------------------------------------------------------------------------------------------------------
> 
>  PostgreSQL 9.2beta2 on i686-pc-linux-gnu, compiled by gcc (GCC) 4.4.0
> 20090506 (Red Hat 4.4.0-4), 32-bit
> 
> (1 row)
> 
> 
> 
> paf=# \db
> 
> ERROR:  column "spclocation" does not exist
> 
> LINE 3:   spclocation AS "Location"
> 
>           ^
> 
> paf=# \db+
> 
> ERROR:  column "spclocation" does not exist
> 
> LINE 3:   spclocation AS "Location",
> 
>           ^
> I presume this is linked to the "Remove the spclocation field from
> pg_tablespace" item of the release notes
> and that something like the new pg_tablespace_location() function should be
> used by psql.
Are you using the psql provided by 9.2 beta 2? Or an older version? It
appears that the version of psql in 9.2 beta 2 does the correct thing,
look at src/bin/psql/describe.c line 142 or so.

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

-Ryan Kelly



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

* Re: BUG #6694: 9.2 beta 2 : psql commands \db and \db+ fail
@ 2012-06-15 00:36  Josh Kupershmidt <schmiddy@gmail.com>
  parent: Ryan Kelly <rpkelly22@gmail.com>
  0 siblings, 1 reply; 4+ messages in thread

From: Josh Kupershmidt @ 2012-06-15 00:36 UTC (permalink / raw)
  To: Ryan Kelly <rpkelly22@gmail.com>; +Cc: phb.emaj@free.fr; pgsql-bugs

On Thu, Jun 14, 2012 at 1:34 PM, Ryan Kelly <rpkelly22@gmail.com> wrote:
> On Wed, Jun 13, 2012 at 07:17:11PM +0000, phb.emaj@free.fr wrote:

>> paf=# \db
>>
>> ERROR:  column "spclocation" does not exist
>>
>> LINE 3:   spclocation AS "Location"
>>
>>           ^
>>

> Are you using the psql provided by 9.2 beta 2? Or an older version? It
> appears that the version of psql in 9.2 beta 2 does the correct thing,
> look at src/bin/psql/describe.c line 142 or so.

Yeah, the OP must be using a 9.1 or earlier psql to connect to the
9.2beta2 server showed in his version() output. There's a reason we
print out a warning like this:

  WARNING: psql version X.a, server version Y.b
           Some psql features might not work.

when the major version of psql and the server it is connecting to don't match.

Josh



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

* Re: BUG #6694: 9.2 beta 2 : psql commands \db and \db+ fail
@ 2012-06-15 12:50  Philippe BEAUDOIN <phb.emaj@free.fr>
  parent: Josh Kupershmidt <schmiddy@gmail.com>
  0 siblings, 0 replies; 4+ messages in thread

From: Philippe BEAUDOIN @ 2012-06-15 12:50 UTC (permalink / raw)
  To: Josh Kupershmidt <schmiddy@gmail.com>; +Cc: Ryan Kelly <rpkelly22@gmail.com>; pgsql-bugs

Hello,
>>> paf=# \db
>>>
>>> ERROR:  column "spclocation" does not exist
>>>
>>> LINE 3:   spclocation AS "Location"
>>>
>>>           ^
>>>
>>>       
>
>   
>> Are you using the psql provided by 9.2 beta 2? Or an older version? It
>> appears that the version of psql in 9.2 beta 2 does the correct thing,
>> look at src/bin/psql/describe.c line 142 or so.
>>     
>
> Yeah, the OP must be using a 9.1 or earlier psql to connect to the
> 9.2beta2 server showed in his version() output. There's a reason we
> print out a warning like this:
>
>   WARNING: psql version X.a, server version Y.b
>            Some psql features might not work.
>
> when the major version of psql and the server it is connecting to don't match.
>
> Josh
>
>   

Oups ! You are right, I was not using the right psql client version!!!

I am using different pg version for various tests. And I failed here to 
use the right PATH.

Please accept my apologies for the noise.
I will be more careful before reporting the next bug ;-)

Best regards.
Philippe.



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


end of thread, other threads:[~2012-06-15 12:50 UTC | newest]

Thread overview: 4+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2012-06-13 19:17 BUG #6694: 9.2 beta 2 : psql commands \db and \db+ fail phb.emaj@free.fr
2012-06-14 20:34 ` Ryan Kelly <rpkelly22@gmail.com>
2012-06-15 00:36   ` Josh Kupershmidt <schmiddy@gmail.com>
2012-06-15 12:50     ` Philippe BEAUDOIN <phb.emaj@free.fr>

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