psql bug or feature?

Started by Tatsuo Ishiiover 24 years ago4 messages
#1Tatsuo Ishii
t-ishii@sra.co.jp

I don't understand following behavior of psql:-)
This is PostgreSQL 7.1.2 on Linux.
--
Tatsuo Ishii

$ psql pgimage
Welcome to psql, 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

pgimage=# \lo
List of databases
Database | Owner | Encoding
-----------+---------+----------
ascii | t-ishii | EUC_JP
foo | t-ishii | EUC_JP
foo1 | t-ishii | EUC_JP
latin1 | t-ishii | LATIN2
pgimage | t-ishii | EUC_JP
template0 | t-ishii | EUC_JP
template1 | t-ishii | EUC_JP
test | t-ishii | EUC_JP
testdb2 | t-ishii | EUC_JP
(9 rows)

\l: extra argument 'o' ignored
pgimage-# \lo_list
Large objects
ID | Description
---------+-------------
2401715 |
2401723 |
2401726 |
2401739 |
2401742 |
2401754 |
2401757 |
(7 rows)

pgimage-# select * from pg_database;
ERROR: parser: parse error at or near "m"
pgimage=#

#2Peter Eisentraut
peter_e@gmx.net
In reply to: Tatsuo Ishii (#1)
Re: psql bug or feature?

Tatsuo Ishii writes:

I don't understand following behavior of psql:-)
This is PostgreSQL 7.1.2 on Linux.

I think you're still running the 7.1.1 version of psql, because this is
one bug fixed in 7.1.2. Try 'psql --version'.

--
Peter Eisentraut peter_e@gmx.net http://funkturm.homeip.net/~peter

#3Tom Lane
tgl@sss.pgh.pa.us
In reply to: Tatsuo Ishii (#1)
Re: psql bug or feature?

Tatsuo Ishii <t-ishii@sra.co.jp> writes:

I don't understand following behavior of psql:-)

I can't replicate that misbehavior. I'm not using MULTIBYTE though,
maybe it depends on that ...

regards, tom lane

#4Tatsuo Ishii
t-ishii@sra.co.jp
In reply to: Peter Eisentraut (#2)
Re: psql bug or feature?

Tatsuo Ishii writes:

I don't understand following behavior of psql:-)
This is PostgreSQL 7.1.2 on Linux.

I think you're still running the 7.1.1 version of psql, because this is
one bug fixed in 7.1.2. Try 'psql --version'.

You are right. I seem to mixed up 7.1.1 psql with 7.1.2 backend. Sorry
for the confusion.
--
Tatsuo Ishii