Re: Problem perhaps after upgrading to pgadmin4 7.4

From: Ron <ronljohnsonjr(at)gmail(dot)com>
To: pgsql-general(at)lists(dot)postgresql(dot)org
Subject: Re: Problem perhaps after upgrading to pgadmin4 7.4
Date: 2023-07-17 02:23:10
Message-ID: fbf73eaa-ae4a-b3ed-5d9e-f57f193e8e3a@gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On 7/13/23 06:20, Carl Erik Eriksson wrote:
> Query tool PGadmin on my mac
>
> If I enter a query like select count(*) from table_1 I get a correct response from the server
> If I enter select * from table_1 I get an error message that I do not understand:
> Error Message:missing FROM-clause entry for table "rel"
> LINE 8: ...ER JOIN pg_catalog.pg_constraint con ON con.conrelid=rel.oid
>
> PSQL tool (PGadmin on my Mac)
>
> However if I enter the same from the PSQL tool I get the correct output.
>
> But that output goes to my screen and I have found no way of directing it to a file on my Mac.
>
> Any suggestions? Either getting rid of the error message and getting the output to my screen within the Query tool where I can then dump the output to a file
> OR a way of running my query using the PSQL tool and redirecting the output to a file on my computer.

Two other solutions:
psql --dbname=foo -c "select * from table_1;" > table_1.txt
psql foo --csv -c "select * from table_1;" > table_1.csv

--
Born in Arizona, moved to Babylonia.

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Ron 2023-07-17 02:27:09 Re: Rocky Linux 9 and postgres10
Previous Message 黄宁 2023-07-17 02:12:03 Re: create a temp table in SPI