pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
does postgres has snapshot standby feature?
3+ messages / 3 participants
[nested] [flat]

* does postgres has snapshot standby feature?
@ 2022-10-14 09:20  milist ujang <ujang.milist@gmail.com>
  0 siblings, 2 replies; 3+ messages in thread

From: milist ujang @ 2022-10-14 09:20 UTC (permalink / raw)
  To: pgsql-general

hi all,

read about removing standby.signal file behavior in pg14 from
https://dbaclass.com/article/how-to-open-postgres-standby-database-for-read-writesnapshot-standby/

I was shocked about the hidden feature of snapshot standby, does it really
exist?
I could not find anything about snapshot standby in docs so far.

I have removed the standby.signal file in pg12 but got strange behavior
until I have to recreate the standby.

-- 
regards

ujang jaenudin | DBA Consultant (Freelancer)
http://ora62.wordpress.com
http://id.linkedin.com/pub/ujang-jaenudin/12/64/bab

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

* Re: does postgres has snapshot standby feature?
@ 2022-10-14 12:33  Laurenz Albe <laurenz.albe@cybertec.at>
  parent: milist ujang <ujang.milist@gmail.com>
  1 sibling, 0 replies; 3+ messages in thread

From: Laurenz Albe @ 2022-10-14 12:33 UTC (permalink / raw)
  To: milist ujang <ujang.milist@gmail.com>; pgsql-general

On Fri, 2022-10-14 at 16:20 +0700, milist ujang wrote:
> read about removing standby.signal file behavior in pg14 from 
> https://dbaclass.com/article/how-to-open-postgres-standby-database-for-read-writesnapshot-standby/
> 
> I was shocked about the hidden feature of snapshot standby, does it really exist?
> I could not find anything about snapshot standby in docs so far.

The referenced article talks about "pg_rewind", so look under that name.

> I have removed the standby.signal file in pg12 but got strange behavior until I have to recreate the standby.

If you removed the file, you did something wrong.
You have to promote the standby properly.

Yours,
Laurenz Albe
-- 
Cybertec | https://www.cybertec-postgresql.com





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

* Re: does postgres has snapshot standby feature?
@ 2022-10-14 13:08  Christoph Moench-Tegeder <cmt@burggraben.net>
  parent: milist ujang <ujang.milist@gmail.com>
  1 sibling, 0 replies; 3+ messages in thread

From: Christoph Moench-Tegeder @ 2022-10-14 13:08 UTC (permalink / raw)
  To: milist ujang <ujang.milist@gmail.com>; +Cc: pgsql-general

## milist ujang (ujang.milist@gmail.com):

> read about removing standby.signal file behavior in pg14 from
> https://dbaclass.com/article/how-to-open-postgres-standby-database-for-read-writesnapshot-standby/

That article is fractally wrong, and that starts right in the first
sentence. See
https://www.postgresql.org/docs/15/functions-info.html#FUNCTIONS-PG-SNAPSHOT
(not getting into detail discussions, but still).

Anyhow, the article does not discuss requirements and limitations of
pg_rewind, and promotes unsafe practices. After reading this article,
I'd be more than careful with anything else published by that source.

> I was shocked about the hidden feature of snapshot standby, does it really
> exist?

It's not an official feature. There's a limited amount of thing you can
get away with when breaking and rewinding replication, but the guarantees
on those are rather weak.

Regards,
Christoph

-- 
Spare Space.





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


end of thread, other threads:[~2022-10-14 13:08 UTC | newest]

Thread overview: 3+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2022-10-14 09:20 does postgres has snapshot standby feature? milist ujang <ujang.milist@gmail.com>
2022-10-14 12:33 ` Laurenz Albe <laurenz.albe@cybertec.at>
2022-10-14 13:08 ` Christoph Moench-Tegeder <cmt@burggraben.net>

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