A simple question: Why 'pg_ctl: command not found...' ?

2022-03-08 Thread BeginnerC
Hello everyone, When I start to learn the 'pg_ctl', the bash echo 'pg_ctl: command not found...' and then print 'Install package 'postgresql-server' to provide command 'pg_ctl'? [N/y]' I am confused because I had already install the PostgreSQL correctly just follow the postgres Document,to prove

Re: A simple question: Why 'pg_ctl: command not found...' ?

2022-03-08 Thread Laurenz Albe
On Tue, 2022-03-08 at 17:44 +0800, BeginnerC wrote: > When I start to learn the 'pg_ctl', > the bash echo 'pg_ctl: command not found...' and then print 'Install package > 'postgresql-server' to provide command 'pg_ctl'? [N/y]' > I am confused because I had already install the PostgreSQL correctly

Serializable read only deferrable- implications

2022-03-08 Thread Michael Lewis
https://www.postgresql.org/docs/14/sql-set-transaction.html "The DEFERRABLE transaction property has no effect unless the transaction is also SERIALIZABLE and READ ONLY. When all three of these properties are selected for a transaction, the transaction may block when first acquiring its snapshot,

Re: A simple question: Why 'pg_ctl: command not found...' ?

2022-03-08 Thread Adrian Klaver
On 3/8/22 01:44, BeginnerC wrote: Hello everyone, When I start to learn the 'pg_ctl', the bash echo 'pg_ctl: command not found...' and then print 'Install package 'postgresql-server' to provide command 'pg_ctl'? [N/y]' I am confused because I had already install the PostgreSQL correctly just fo

Re: Serializable read only deferrable- implications

2022-03-08 Thread Laurenz Albe
On Tue, 2022-03-08 at 06:29 -0700, Michael Lewis wrote: > "The DEFERRABLE transaction property has no effect unless the transaction is > also > SERIALIZABLE and READ ONLY. When all three of these properties are selected > for a transaction, > the transaction may block when first acquiring its sna

Re: Serializable read only deferrable- implications

2022-03-08 Thread Michael Lewis
> > A transaction started with the first statement will not take any SI locks, > nor > will it ever receive a serialization error. > What is the meaning of SI? Anything you are aware of in source code or a blog post that discusses this?

Re: Serializable read only deferrable- implications

2022-03-08 Thread Tom Lane
Michael Lewis writes: >> A transaction started with the first statement will not take any SI locks, >> nor will it ever receive a serialization error. > What is the meaning of SI? Anything you are aware of in source code or a > blog post that discusses this? There's src/backend/storage/lmgr/READ

Re: Serializable read only deferrable- implications

2022-03-08 Thread Adrian Klaver
On 3/8/22 08:21, Tom Lane wrote: Michael Lewis writes: A transaction started with the first statement will not take any SI locks, nor will it ever receive a serialization error. What is the meaning of SI? Anything you are aware of in source code or a blog post that discusses this? There's

Re: Serializable read only deferrable- implications

2022-03-08 Thread Michael Lewis
On Tue, Mar 8, 2022 at 9:27 AM Adrian Klaver wrote: > "PostgreSQL maintains this guarantee even when providing the strictest > level of transaction isolation through the use of an innovative > Serializable Snapshot Isolation (SSI) level." > > Then: > > > https://www.postgresql.org/docs/current/tr

Re: Serializable read only deferrable- implications

2022-03-08 Thread Adrian Klaver
On 3/8/22 10:47 AM, Michael Lewis wrote: Thanks to you both. If other concurrent sessions are using default isolation level of Read committed, would putting long running reports (read-only) into that read-only serializable deferrable mode be impactful at all? The documentation says that a tr

Re: Interesting fail when migrating Pg from Ubuntu Bionic to Focal

2022-03-08 Thread hubert depesz lubaczewski
On Mon, Mar 07, 2022 at 09:54:22AM -0800, Andres Freund wrote: > > Initially select didn't break anything, but when I tuned down > > jit_above_cost so that it will kick in - got fails immediately. > Could you set jit_debugging_support=on and show a backtrace with that? Here you go: Program receive

Re: Serializable read only deferrable- implications

2022-03-08 Thread David G. Johnston
On Tue, Mar 8, 2022 at 11:47 AM Michael Lewis wrote: > > Thanks to you both. If other concurrent sessions are using default > isolation level of Read committed, would putting long running reports > (read-only) into that read-only serializable deferrable mode be impactful > at all? > I'm tending

Postgres migration from 9.2 to 14

2022-03-08 Thread Lucas
Hi guys! You may have seen my previous posts about Streaming Replication Lag issues and some questions regarding upgrading from PostgreSQL 9.2 to PostgreSQL 14. Well, I have completed the project a couple of weeks ago and have successfully migrated from PG 9.2 to PG 14. :) You can check it