pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
psql does not provide proper response
8+ messages / 6 participants
[nested] [flat]

* psql does not provide proper response
@ 2022-01-20 17:54  Shaozhong SHI <shishaozhong@gmail.com>
  0 siblings, 3 replies; 8+ messages in thread

From: Shaozhong SHI @ 2022-01-20 17:54 UTC (permalink / raw)
  To: pgsql-general <pgsql-general@lists.postgresql.org>

I do not know what happened.

psql does not provide proper response anymore.

I typed the following and see nothing.

user=# select * from boundaryline.scotland_and_wales_const_region
user-#

Can anyone enlighten me?

Regards,

David

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

* Re: psql does not provide proper response
@ 2022-01-20 17:56  Rob Sargent <robjsargent@gmail.com>
  parent: Shaozhong SHI <shishaozhong@gmail.com>
  2 siblings, 1 reply; 8+ messages in thread

From: Rob Sargent @ 2022-01-20 17:56 UTC (permalink / raw)
  To: pgsql-general@lists.postgresql.org

On 1/20/22 10:54, Shaozhong SHI wrote:
> I do not know what happened.
>
> psql does not provide proper response anymore.
>
> I typed the following and see nothing.
>
> user=# select * from boundaryline.scotland_and_wales_const_region
> user-#
>
> Can anyone enlighten me?
>
> Regards,
>
> David
Add semi-colon return?

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

* Re: psql does not provide proper response
@ 2022-01-20 18:50  Bryn Llewellyn <bryn@yugabyte.com>
  parent: Shaozhong SHI <shishaozhong@gmail.com>
  2 siblings, 1 reply; 8+ messages in thread

From: Bryn Llewellyn @ 2022-01-20 18:50 UTC (permalink / raw)
  To: Shaozhong SHI <shishaozhong@gmail.com>; +Cc: pgsql-general list <pgsql-general@lists.postgresql.org>

> shishaozhong@gmail.com wrote:
> 
> I do not know what happened.
> 
> psql does not provide proper response anymore.
> 
> I typed the following and see nothing.
> 
> user=# select * from boundaryline.scotland_and_wales_const_region
> user-#
> 
> Can anyone enlighten me?

This happens to me all too frequently. Then I kick myself and realize that I earlier said “\o spool.txt” (by hand) and forgot to turn it off with the bare “\o”. This is my typical use case:

\o spool.txt
\i script.sql

The script causes an error. I read it, see the bad statement, and then type the correct statement by hand. Then I see what you did: a big fat nothing.

Might this be happening to you?






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

* Re: psql does not provide proper response
@ 2022-01-20 18:54  Pavel Stehule <pavel.stehule@gmail.com>
  parent: Bryn Llewellyn <bryn@yugabyte.com>
  0 siblings, 0 replies; 8+ messages in thread

From: Pavel Stehule @ 2022-01-20 18:54 UTC (permalink / raw)
  To: Bryn Llewellyn <bryn@yugabyte.com>; +Cc: Shaozhong SHI <shishaozhong@gmail.com>; pgsql-general list <pgsql-general@lists.postgresql.org>

čt 20. 1. 2022 v 19:50 odesílatel Bryn Llewellyn <bryn@yugabyte.com> napsal:

> > shishaozhong@gmail.com wrote:
> >
> > I do not know what happened.
> >
> > psql does not provide proper response anymore.
> >
> > I typed the following and see nothing.
> >
> > user=# select * from boundaryline.scotland_and_wales_const_region
> > user-#
> >
> > Can anyone enlighten me?
>

you are missing to write semicolon - at end of command

you see it in prompt "-#"

Regards

Pavel


>
> This happens to me all too frequently. Then I kick myself and realize that
> I earlier said “\o spool.txt” (by hand) and forgot to turn it off with the
> bare “\o”. This is my typical use case:
>
> \o spool.txt
> \i script.sql
>
> The script causes an error. I read it, see the bad statement, and then
> type the correct statement by hand. Then I see what you did: a big fat
> nothing.
>
> Might this be happening to you?
>
>
>
>

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

* Re: psql does not provide proper response
@ 2022-01-20 18:54  David G. Johnston <david.g.johnston@gmail.com>
  parent: Shaozhong SHI <shishaozhong@gmail.com>
  2 siblings, 0 replies; 8+ messages in thread

From: David G. Johnston @ 2022-01-20 18:54 UTC (permalink / raw)
  To: Shaozhong SHI <shishaozhong@gmail.com>; +Cc: pgsql-general <pgsql-general@lists.postgresql.org>

On Thu, Jan 20, 2022 at 10:55 AM Shaozhong SHI <shishaozhong@gmail.com>
wrote:

> I do not know what happened.
>
> psql does not provide proper response anymore.
>
> I typed the following and see nothing.
>
> user=# select * from boundaryline.scotland_and_wales_const_region
> user-#
>
> Can anyone enlighten me?
>
>
You got and are showing the proper response, the prompt changed from
"user=#" to "user-#".

The reason it did that response instead of showing a query result has
already been answered.

David J.

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

* Re: psql does not provide proper response
@ 2022-01-20 20:35  Shaozhong SHI <shishaozhong@gmail.com>
  parent: Rob Sargent <robjsargent@gmail.com>
  0 siblings, 2 replies; 8+ messages in thread

From: Shaozhong SHI @ 2022-01-20 20:35 UTC (permalink / raw)
  To: Rob Sargent <robjsargent@gmail.com>; +Cc: pgsql-general@lists.postgresql.org <pgsql-general@lists.postgresql.org>

Added.  But only head of columns appeared.
Any way to visualise?
Regards, David

On Thursday, 20 January 2022, Rob Sargent <robjsargent@gmail.com> wrote:

> On 1/20/22 10:54, Shaozhong SHI wrote:
>
> I do not know what happened.
>
> psql does not provide proper response anymore.
>
> I typed the following and see nothing.
>
> user=# select * from boundaryline.scotland_and_wales_const_region
> user-#
>
> Can anyone enlighten me?
>
> Regards,
>
> David
>
> Add semi-colon return?
>

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

* Re: psql does not provide proper response
@ 2022-01-20 20:39  David G. Johnston <david.g.johnston@gmail.com>
  parent: Shaozhong SHI <shishaozhong@gmail.com>
  1 sibling, 0 replies; 8+ messages in thread

From: David G. Johnston @ 2022-01-20 20:39 UTC (permalink / raw)
  To: Shaozhong SHI <shishaozhong@gmail.com>; +Cc: Rob Sargent <robjsargent@gmail.com>; pgsql-general@lists.postgresql.org <pgsql-general@lists.postgresql.org>

On Thu, Jan 20, 2022 at 1:35 PM Shaozhong SHI <shishaozhong@gmail.com>
wrote:

> Added.  But only head of columns appeared.


Then the table is probably empty...

Any way to visualise?
>

Visualize what?  You do realize that psql is a text-based application,
right?

David J.

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

* Re: psql does not provide proper response
@ 2022-01-20 20:51  Adrian Klaver <adrian.klaver@aklaver.com>
  parent: Shaozhong SHI <shishaozhong@gmail.com>
  1 sibling, 0 replies; 8+ messages in thread

From: Adrian Klaver @ 2022-01-20 20:51 UTC (permalink / raw)
  To: Shaozhong SHI <shishaozhong@gmail.com>; Rob Sargent <robjsargent@gmail.com>; +Cc: pgsql-general@lists.postgresql.org <pgsql-general@lists.postgresql.org>

On 1/20/22 12:35, Shaozhong SHI wrote:
> Added.  But only head of columns appeared.

Best guess is there is no data in table.

Do:

select count(*) from boundaryline.scotland_and_wales_const_region;

> Any way to visualise?
> Regards, David
> 
> On Thursday, 20 January 2022, Rob Sargent <robjsargent@gmail.com 
> <mailto:robjsargent@gmail.com>> wrote:
> 
>     On 1/20/22 10:54, Shaozhong SHI wrote:
>>     I do not know what happened.
>>
>>     psql does not provide proper response anymore.
>>
>>     I typed the following and see nothing.
>>
>>     user=# select * from boundaryline.scotland_and_wales_const_region
>>     user-#
>>
>>     Can anyone enlighten me?
>>
>>     Regards,
>>
>>     David
>     Add semi-colon return?
> 


-- 
Adrian Klaver
adrian.klaver@aklaver.com





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


end of thread, other threads:[~2022-01-20 20:51 UTC | newest]

Thread overview: 8+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2022-01-20 17:54 psql does not provide proper response Shaozhong SHI <shishaozhong@gmail.com>
2022-01-20 17:56 ` Rob Sargent <robjsargent@gmail.com>
2022-01-20 20:35   ` Shaozhong SHI <shishaozhong@gmail.com>
2022-01-20 20:39     ` David G. Johnston <david.g.johnston@gmail.com>
2022-01-20 20:51     ` Adrian Klaver <adrian.klaver@aklaver.com>
2022-01-20 18:50 ` Bryn Llewellyn <bryn@yugabyte.com>
2022-01-20 18:54   ` Pavel Stehule <pavel.stehule@gmail.com>
2022-01-20 18:54 ` David G. Johnston <david.g.johnston@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