pg.ddx.io pgsql-general@postgresql.org mailing list archive
help / color / mirror / Atom feedpsql bug?
10+ messages / 7 participants
[nested] [flat]
* psql bug?
@ 2000-01-26 22:22 Sarah Officer <officers@aries.tucson.saic.com>
0 siblings, 0 replies; 10+ messages in thread
From: Sarah Officer @ 2000-01-26 22:22 UTC (permalink / raw)
To: pgsql-general
I am running postgres 6.5.3 on an IRIX6.5. In psql, I can't
describe any table I create. I am able to select contents. Is this
a bug?
psql mydb
mydb=> \d
Database = bcams
+------------------+----------------------------------+----------+
| Owner | Relation | Type |
+------------------+----------------------------------+----------+
| dusty | sites | table |
| dusty | sites_pkey | index |
+------------------+----------------------------------+----------+
mydb=> \d sites
ERROR: typeidTypeRelid: Invalid type - oid = 0
mydb=> select * from sites
mydb-> ;
id|site_name | first| second|category_code
----------+----------------+---------+---------+-------------
1111-11111|TRI-CITY AIRPORT|44.111000|18.111000| 1
2222-22222|USED CAR LOT |44.222000|18.222000| 1
3333-33333|BIG CITY MALL |44.333000|18.333000| 2
4444-44444|TOWN DUMP |44.444000|18.444000| 1
5555-55555|VILLAGE PARK NE |44.555000|18.555000| 1
(5 rows)
^ permalink raw reply [nested|flat] 10+ messages in thread
* Psql bug?
@ 2003-11-20 23:33 Francisco Reyes <lists@natserv.com>
0 siblings, 1 reply; 10+ messages in thread
From: Francisco Reyes @ 2003-11-20 23:33 UTC (permalink / raw)
To: pgsql-general
Compiled PostgreSQL with gettext support.
Table name completion works for \d <table initials>, but doesn't for \d+
<table initials>.
Is this considered a bug? (even if a very minor one at that..).
^ permalink raw reply [nested|flat] 10+ messages in thread
* Re: Psql bug?
@ 2003-11-21 05:04 Tom Lane <tgl@sss.pgh.pa.us>
parent: Francisco Reyes <lists@natserv.com>
0 siblings, 1 reply; 10+ messages in thread
From: Tom Lane @ 2003-11-21 05:04 UTC (permalink / raw)
To: Francisco Reyes <lists@natserv.com>; +Cc: pgsql-general
Francisco Reyes <lists@natserv.com> writes:
> Compiled PostgreSQL with gettext support.
> Table name completion works for \d <table initials>, but doesn't for \d+
> <table initials>.
Works fine for me ...
regards, tom lane
^ permalink raw reply [nested|flat] 10+ messages in thread
* Re: Psql bug?
@ 2003-11-21 18:06 Francisco Reyes <lists@natserv.com>
parent: Tom Lane <tgl@sss.pgh.pa.us>
0 siblings, 1 reply; 10+ messages in thread
From: Francisco Reyes @ 2003-11-21 18:06 UTC (permalink / raw)
To: Tom Lane <tgl@sss.pgh.pa.us>; +Cc: pgsql-general
On Fri, 21 Nov 2003, Tom Lane wrote:
> Francisco Reyes <lists@natserv.com> writes:
> > Compiled PostgreSQL with gettext support.
> > Table name completion works for \d <table initials>, but doesn't for \d+
> > <table initials>.
>
> Works fine for me ...
On a 7.3.4 release Psql?
I was trying first on a 7.3.4 built from ports on FreeBSD.
Just tried a Suse Linux machine that I have access to. Postgres was built
from sources there and I see the same behavior.
For example I have a table called phones
\d ph <tab>
completes name to phones but,
\d+ ph <tab> doesn't complete name.
^ permalink raw reply [nested|flat] 10+ messages in thread
* Re: Psql bug?
@ 2003-11-21 18:57 Tom Lane <tgl@sss.pgh.pa.us>
parent: Francisco Reyes <lists@natserv.com>
0 siblings, 0 replies; 10+ messages in thread
From: Tom Lane @ 2003-11-21 18:57 UTC (permalink / raw)
To: Francisco Reyes <lists@natserv.com>; +Cc: pgsql-general
Francisco Reyes <lists@natserv.com> writes:
>>> Table name completion works for \d <table initials>, but doesn't for \d+
>>> <table initials>.
>>
>> Works fine for me ...
> On a 7.3.4 release Psql?
Oh, I was testing 7.4.
regards, tom lane
^ permalink raw reply [nested|flat] 10+ messages in thread
* Re: PSQL bug?
@ 2022-03-17 10:38 Pavel Stehule <pavel.stehule@gmail.com>
parent: Dominique Devienne <ddevienne@gmail.com>
1 sibling, 1 reply; 10+ messages in thread
From: Pavel Stehule @ 2022-03-17 10:38 UTC (permalink / raw)
To: Dominique Devienne <ddevienne@gmail.com>; +Cc: pgsql-general <pgsql-general@lists.postgresql.org>
Hi
čt 17. 3. 2022 v 11:35 odesílatel Dominique Devienne <ddevienne@gmail.com>
napsal:
> Made a typo, using } instead of ) to test a weird table name, and got
> disconnected. Normal? --DD
>
> ddevienne=> create table "t |" ( id int};
> ddevienne(> );
> server closed the connection unexpectedly
> This probably means the server terminated abnormally
> before or while processing the request.
> The connection to the server was lost. Attempting reset: Succeeded.
> ddevienne=> create table "t |" ( id int);
> ddevienne=> drop table "t |";
> ddevienne=> \! psql -V
> psql (PostgreSQL) 12.1
> ddevienne=> select version();
> version
>
> ---------------------------------------------------------------------------------------------------------
> PostgreSQL 12.5 on x86_64-pc-linux-gnu, compiled by gcc (GCC) 4.8.5
> 20150623 (Red Hat 4.8.5-39), 64-bit
> (1 row)
>
I don't see any problem on master
^ permalink raw reply [nested|flat] 10+ messages in thread
* PSQL bug?
@ 2022-03-17 10:38 Dominique Devienne <ddevienne@gmail.com>
0 siblings, 2 replies; 10+ messages in thread
From: Dominique Devienne @ 2022-03-17 10:38 UTC (permalink / raw)
To: pgsql-general@lists.postgresql.org
Made a typo, using } instead of ) to test a weird table name, and got
disconnected. Normal? --DD
ddevienne=> create table "t |" ( id int};
ddevienne(> );
server closed the connection unexpectedly
This probably means the server terminated abnormally
before or while processing the request.
The connection to the server was lost. Attempting reset: Succeeded.
ddevienne=> create table "t |" ( id int);
ddevienne=> drop table "t |";
ddevienne=> \! psql -V
psql (PostgreSQL) 12.1
ddevienne=> select version();
version
---------------------------------------------------------------------------------------------------------
PostgreSQL 12.5 on x86_64-pc-linux-gnu, compiled by gcc (GCC) 4.8.5
20150623 (Red Hat 4.8.5-39), 64-bit
(1 row)
^ permalink raw reply [nested|flat] 10+ messages in thread
* Re: PSQL bug?
@ 2022-03-17 11:09 Dominique Devienne <ddevienne@gmail.com>
parent: Pavel Stehule <pavel.stehule@gmail.com>
0 siblings, 1 reply; 10+ messages in thread
From: Dominique Devienne @ 2022-03-17 11:09 UTC (permalink / raw)
To: Pavel Stehule <pavel.stehule@gmail.com>; +Cc: pgsql-general <pgsql-general@lists.postgresql.org>
On Thu, Mar 17, 2022 at 11:38 AM Pavel Stehule <pavel.stehule@gmail.com> wrote:
>> Made a typo, [...], and got disconnected. Normal? --DD
> I don't see any problem on master
OK, good. Must have been fixed already then. Or was a fluke. Thanks
for checking. --DD
^ permalink raw reply [nested|flat] 10+ messages in thread
* Re: PSQL bug?
@ 2022-03-17 11:32 Josef Šimánek <josef.simanek@gmail.com>
parent: Dominique Devienne <ddevienne@gmail.com>
0 siblings, 0 replies; 10+ messages in thread
From: Josef Šimánek @ 2022-03-17 11:32 UTC (permalink / raw)
To: Dominique Devienne <ddevienne@gmail.com>; +Cc: Pavel Stehule <pavel.stehule@gmail.com>; pgsql-general <pgsql-general@lists.postgresql.org>
čt 17. 3. 2022 v 12:06 odesílatel Dominique Devienne
<ddevienne@gmail.com> napsal:
>
> On Thu, Mar 17, 2022 at 11:38 AM Pavel Stehule <pavel.stehule@gmail.com> wrote:
> >> Made a typo, [...], and got disconnected. Normal? --DD
> > I don't see any problem on master
>
> OK, good. Must have been fixed already then. Or was a fluke. Thanks
> for checking. --DD
I tried to reproduce with 14.2 client and latest 14, 13, 12 and 11
servers without luck.
>
^ permalink raw reply [nested|flat] 10+ messages in thread
* Re: PSQL bug?
@ 2022-03-18 00:52 Kyotaro Horiguchi <horikyota.ntt@gmail.com>
parent: Dominique Devienne <ddevienne@gmail.com>
1 sibling, 0 replies; 10+ messages in thread
From: Kyotaro Horiguchi @ 2022-03-18 00:52 UTC (permalink / raw)
To: ddevienne@gmail.com; +Cc: pgsql-general@lists.postgresql.org
At Thu, 17 Mar 2022 11:38:30 +0100, Dominique Devienne <ddevienne@gmail.com> wrote in
> Made a typo, using } instead of ) to test a weird table name, and got
> disconnected. Normal? --DD
>
> ddevienne=> create table "t |" ( id int};
> ddevienne(> );
> server closed the connection unexpectedly
> This probably means the server terminated abnormally
> before or while processing the request.
> The connection to the server was lost. Attempting reset: Succeeded.
The last line "Attempting reset: Succeeded." means that the connection
is once disconnected before the second input line then reconnected by
the input.
Specifically I can reproduce the same result by the following steps.
> ddevienne=> create table "t |" ( id int};
$ pg_ctl restart
> ddevienne(> );
> server closed the connection unexpectedly
> This probably means the server terminated abnormally
> before or while processing the request.
> The connection to the server was lost. Attempting reset: Succeeded.
regards.
--
Kyotaro Horiguchi
NTT Open Source Software Center
^ permalink raw reply [nested|flat] 10+ messages in thread
end of thread, other threads:[~2022-03-18 00:52 UTC | newest]
Thread overview: 10+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2000-01-26 22:22 psql bug? Sarah Officer <officers@aries.tucson.saic.com>
2003-11-20 23:33 Psql bug? Francisco Reyes <lists@natserv.com>
2003-11-21 05:04 ` Re: Psql bug? Tom Lane <tgl@sss.pgh.pa.us>
2003-11-21 18:06 ` Re: Psql bug? Francisco Reyes <lists@natserv.com>
2003-11-21 18:57 ` Re: Psql bug? Tom Lane <tgl@sss.pgh.pa.us>
2022-03-17 10:38 PSQL bug? Dominique Devienne <ddevienne@gmail.com>
2022-03-17 10:38 ` Re: PSQL bug? Pavel Stehule <pavel.stehule@gmail.com>
2022-03-17 11:09 ` Re: PSQL bug? Dominique Devienne <ddevienne@gmail.com>
2022-03-17 11:32 ` Re: PSQL bug? Josef Šimánek <josef.simanek@gmail.com>
2022-03-18 00:52 ` Re: PSQL bug? Kyotaro Horiguchi <horikyota.ntt@gmail.com>
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