Problem perhaps after upgrading to pgadmin4 7.4

2023-07-13 Thread Carl Erik Eriksson
Query tool PGadmin on my mac

If I enter a query like  select count(*) from table_1I 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.

An amateur who is up a creek without any paddle..

Carl E Eriksson 



Re: Problem perhaps after upgrading to pgadmin4 7.4

2023-07-13 Thread Carl Erik Eriksson
Thanks - it seems we might be on pg 10.17-1  /Carl

> On 13 Jul 2023, at 13:52, hubert depesz lubaczewski  wrote:
> 
> On Thu, Jul 13, 2023 at 01:20:03PM +0200, Carl Erik Eriksson wrote:
>> If I enter a query like  select count(*) from table_1I 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.
>> 
>> An amateur who is up a creek without any paddle..
> 
> Which pg version you're on?
> 
> Generally, try updating to newest pgadmin, from git repo
> (https://github.com/pgadmin-org/pgadmin4/), there is/was a bug that
> caused problems when using pg < 11 :
> https://github.com/pgadmin-org/pgadmin4/commit/732bcc2b4d91f0126cf69d69c14df199bc4106bc
> 
> Best regards,
> 
> depesz
> 





Re: Problem perhaps after upgrading to pgadmin4 7.4

2023-07-13 Thread Carl Erik Eriksson
Problem solved - thanks Depez!  (The solution for now is to downgrade to 
PGadmin4 version 7.2)



> On 13 Jul 2023, at 13:52, hubert depesz lubaczewski  wrote:
> 
> On Thu, Jul 13, 2023 at 01:20:03PM +0200, Carl Erik Eriksson wrote:
>> If I enter a query like  select count(*) from table_1I 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.
>> 
>> An amateur who is up a creek without any paddle..
> 
> Which pg version you're on?
> 
> Generally, try updating to newest pgadmin, from git repo
> (https://github.com/pgadmin-org/pgadmin4/), there is/was a bug that
> caused problems when using pg < 11 :
> https://github.com/pgadmin-org/pgadmin4/commit/732bcc2b4d91f0126cf69d69c14df199bc4106bc
> 
> Best regards,
> 
> depesz
> 





Re: Installation Issue

2023-07-17 Thread Carl Erik Eriksson
I too had problems with 7.4. They went away when I downgraded to 7.2

C E Eriksson
Sent from iPhone


> On 17 Jul 2023, at 18:31, Erik Wienhold  wrote:
> 
> 
>> 
>> On 17/07/2023 16:30 CEST Adrian Klaver  wrote:
>> 
>> 
>> The other screenshot is a pgAdmin issue. I have seen quite a few
>> questions about this on Stack Overflow recently. Seems to be related to
>> version 7.4. My suggestion would be to file an issue here:
>> 
>> https://github.com/pgadmin-org/pgadmin4/issues
> 
> Let me guess (without knowing the mentioned screenshot), something about a 
> lost
> connection to pgAdmin server?  That's a known issue in 7.4 which also bugged
> some of my colleagues.  They downgraded to 7.3.
> 
> https://github.com/pgadmin-org/pgadmin4/issues/6524
> 
> --
> Erik
> 
>