Re:

2022-05-23 Thread Sureshsv Kseb
On Mon, May 23, 2022, 11:33 AM Rama Krishnan wrote: > Hi, > > After pg_repack do we face any perfomancr issue or any other issues in > production DB >

list tablespaces named in custom format dump

2022-05-23 Thread Rob Sargent
Using pg 14, is it easy (possible) to list the tablespaces used in a custom format dump. Are the definitions included? Thanks,

Re: list tablespaces named in custom format dump

2022-05-23 Thread Adrian Klaver
On 5/23/22 9:45 AM, Rob Sargent wrote: Using pg 14, is it easy (possible) to list the tablespaces used in a custom format dump. Are the definitions included? https://www.postgresql.org/docs/14/app-pgdump.html "pg_dump only dumps a single database. To back up an entire cluster, or to back up

Re: list tablespaces named in custom format dump

2022-05-23 Thread Rob Sargent
On 5/23/22 10:50, Adrian Klaver wrote: On 5/23/22 9:45 AM, Rob Sargent wrote: Using pg 14, is it easy (possible) to list the tablespaces used in a custom format dump. Are the definitions included? https://www.postgresql.org/docs/14/app-pgdump.html "pg_dump only dumps a single database. To b

Re: list tablespaces named in custom format dump

2022-05-23 Thread Adrian Klaver
On 5/23/22 9:54 AM, Rob Sargent wrote: On 5/23/22 10:50, Adrian Klaver wrote: Roger that, but does the dump of a database name the tablespaces from which the objects were retrieved? And if so, is that accessible? https://www.postgresql.org/docs/14/app-pgrestore.html "--no-tablespaces

Re: list tablespaces named in custom format dump

2022-05-23 Thread Rob Sargent
On 5/23/22 11:00, Adrian Klaver wrote: On 5/23/22 9:54 AM, Rob Sargent wrote: On 5/23/22 10:50, Adrian Klaver wrote: Roger that, but does the dump of a database name the tablespaces from which the objects were retrieved? And if so, is that accessible? https://www.postgresql.org/docs/14/a

Re: list tablespaces named in custom format dump

2022-05-23 Thread Adrian Klaver
On 5/23/22 10:01 AM, Rob Sargent wrote: On 5/23/22 11:00, Adrian Klaver wrote: On 5/23/22 9:54 AM, Rob Sargent wrote: On 5/23/22 10:50, Adrian Klaver wrote: Roger that, but does the dump of a database name the tablespaces from which the objects were retrieved? And if so, is that accessible?

Re: PLPGSQL - extra column existence in trigger

2022-05-23 Thread Durumdara
Hello! Peter J. Holzer ezt írta (időpont: 2022. máj. 11., Sze, 0:44): > On 2022-05-07 15:02:09 +0200, Durumdara wrote: > > > So in the new trigger we can't load them all with: > > How do you get a new trigger on one table but not the new columns on the > other table? Wouldn't you update both at

Re: list tablespaces named in custom format dump

2022-05-23 Thread Rob Sargent
On 5/23/22 11:07, Adrian Klaver wrote: On 5/23/22 10:01 AM, Rob Sargent wrote: On 5/23/22 11:00, Adrian Klaver wrote: On 5/23/22 9:54 AM, Rob Sargent wrote: On 5/23/22 10:50, Adrian Klaver wrote: Roger that, but does the dump of a database name the tablespaces from which the objects were re

psql connect over ssl load balancer

2022-05-23 Thread dzagas...@gmail.com
Hi. I want to secure connections to postgress server usings SSL. My server is deployed on google cloud behind SSL load balancer, which terminates SSL connections (using SSL certificates, issued by google) and forwards decrypted traffic to the posgres server. I can connect without problems fro

Re: list tablespaces named in custom format dump

2022-05-23 Thread Tom Lane
Adrian Klaver writes: > On 5/23/22 9:54 AM, Rob Sargent wrote: >> Roger that, but does the dump of a database name the tablespaces from >> which the objects were retrieved? And if so, is that accessible? > Would indicate it does. I don't have cluster set up with tablespaces to > test, but I wou

Re: psql connect over ssl load balancer

2022-05-23 Thread Tom Lane
"dzagas...@gmail.com" writes: > I want to secure connections to postgress server usings SSL. > My server is deployed on google cloud behind SSL load balancer, which > terminates SSL connections (using SSL certificates, issued by google) > and forwards decrypted traffic to the posgres server. > B

Can I start Update row in After Insert trigger function?

2022-05-23 Thread Durumdara
Hello! I need to log some row changes in a table with JSON format (row_to_json). In the Before Update I can select the row into a column with JSON format. And in After Update I can log this column into an archive table. Plus I have the prior data in the JSON_TEXT field. It's ok. FUNCTION Before

Re: psql connect over ssl load balancer

2022-05-23 Thread dzagas...@gmail.com
Ah, thanks. This will make thing more complex. On 23.05.2022 20:32, Tom Lane wrote: "dzagas...@gmail.com" writes: I want to secure connections to postgress server usings SSL. My server is deployed on google cloud behind SSL load balancer, which terminates SSL connections (using SSL certificate

Re: Can I start Update row in After Insert trigger function?

2022-05-23 Thread Adrian Klaver
On 5/23/22 10:35 AM, Durumdara wrote: Hello! I need to log some row changes in a table with JSON format (row_to_json). In the Before Update I can select the row into a column with JSON format. And in After Update I can log this column into an archive table. Plus I have the prior data in the JSO

Re: list tablespaces named in custom format dump

2022-05-23 Thread Rob Sargent
On 5/23/22 11:29, Tom Lane wrote: AFAICS, the output produced by -l doesn't mention objects' tablespaces. You could see them by extracting the plain text archive and grepping for object comments that include a tablespace name: pg_restore -s -f - archive_file | grep Tablespace: It looks to me l

Re: list tablespaces named in custom format dump

2022-05-23 Thread Adrian Klaver
On 5/23/22 10:19 AM, Rob Sargent wrote: On 5/23/22 11:07, Adrian Klaver wrote: On 5/23/22 10:01 AM, Rob Sargent wrote: On 5/23/22 11:00, Adrian Klaver wrote: On 5/23/22 9:54 AM, Rob Sargent wrote: On 5/23/22 10:50, Adrian Klaver wrote: This is great news.  I do have pg14.  I thought you

Re: list tablespaces named in custom format dump

2022-05-23 Thread Rob Sargent
On 5/23/22 11:51, Adrian Klaver wrote: On 5/23/22 10:19 AM, Rob Sargent wrote: On 5/23/22 11:07, Adrian Klaver wrote: On 5/23/22 10:01 AM, Rob Sargent wrote: On 5/23/22 11:00, Adrian Klaver wrote: On 5/23/22 9:54 AM, Rob Sargent wrote: On 5/23/22 10:50, Adrian Klaver wrote: This is gre

Re: list tablespaces named in custom format dump

2022-05-23 Thread Adrian Klaver
On 5/23/22 11:04 AM, Rob Sargent wrote: Thanks Adrian.  There's enough wiggle room in there for me to at least try the restore. Linus file command tells me db.dump: PostgreSQL custom database dump - v1.13-0 The pg_restore -l command will show the relevant information at top of file so

Re: list tablespaces named in custom format dump

2022-05-23 Thread Tom Lane
Rob Sargent writes: > Thanks Adrian.  There's enough wiggle room in there for me to at least > try the restore. Linus file command tells me > db.dump: PostgreSQL custom database dump - v1.13-0 > That dump was from a version 10 server.  Any guess at how that "v1.13-0" > relates to the serve

Re: list tablespaces named in custom format dump

2022-05-23 Thread Rob Sargent
On 5/23/22 12:15, Tom Lane wrote: Rob Sargent writes: Thanks Adrian.  There's enough wiggle room in there for me to at least try the restore. Linus file command tells me db.dump: PostgreSQL custom database dump - v1.13-0 That dump was from a version 10 server.  Any guess at how that "v1.13

Re: list tablespaces named in custom format dump

2022-05-23 Thread Adrian Klaver
On 5/23/22 11:31, Rob Sargent wrote: On 5/23/22 12:15, Tom Lane wrote: pg_restore -f - db.dump | head which should provide some comments telling you the originating server version and pg_dump version. regards, tom lane OK, back to reality: version 10 dump. The out

Re: list tablespaces named in custom format dump

2022-05-23 Thread Rob Sargent
> On May 23, 2022, at 12:59 PM, Adrian Klaver wrote: > > On 5/23/22 11:31, Rob Sargent wrote: >> On 5/23/22 12:15, Tom Lane wrote: > >>> >>> pg_restore -f - db.dump | head >>> >>> which should provide some comments telling you the originating >>> server version and pg_dump version. >>> >>>

Re: list tablespaces named in custom format dump

2022-05-23 Thread Adrian Klaver
On 5/23/22 12:26, Rob Sargent wrote: As to older version, how are you installing Postgres? Much appreciated, rjs Yeah, that’s part of the problem. /I’m/ not installing postgres, another group has that control.  I can get the answer for version 14 but maybe not for version 10.  Curren

Re: list tablespaces named in custom format dump

2022-05-23 Thread Rob Sargent
On 5/23/22 13:47, Adrian Klaver wrote: On 5/23/22 12:26, Rob Sargent wrote: As to older version, how are you installing Postgres? Much appreciated, rjs Yeah, that’s part of the problem. /I’m/ not installing postgres, another group has that control.  I can get the answer for version 1

cast to domain with default collation issue.

2022-05-23 Thread jian he
CREATE DOMAIN testdomain AS text; --asume the default collation is as per show LC_COLLATE; – on my pc, it is C.UTF-8. --So the testdomain will be collation "C.UTF-8" => \d collate_test1 Table "test.collate_test1" Column | Type | Collation | Nullable | Default --

Re: cast to domain with default collation issue.

2022-05-23 Thread David G. Johnston
On Monday, May 23, 2022, jian he wrote: > CREATE DOMAIN testdomain AS text; > > --asume the default collation is as per show LC_COLLATE; > > – on my pc, it is C.UTF-8. > > --So the testdomain will be collation "C.UTF-8" > > > => \d collate_test1 > > Table "test.collate_t

Re: cast to domain with default collation issue.

2022-05-23 Thread Tom Lane
"David G. Johnston" writes: > On Monday, May 23, 2022, jian he wrote: >> CREATE DOMAIN testdomain AS text; >> --asume the default collation is as per show LC_COLLATE; >> – on my pc, it is C.UTF-8. >> --So the testdomain will be collation "C.UTF-8" > My reading of the docs say this is consistent

Re: Can I start Update row in After Insert trigger function?

2022-05-23 Thread Durumdara
Dear Adrian! Thank you for the information. For me the main question is that: Can I execute an UPDATE in the AFTER INSERT trigger procedure? Or is this confuses PGSQL, because prior operation (INSERT) isn't fully finished? Thank you! BR, dd Adrian Klaver ezt írta (időpont: 2022. máj. 23., H,