pg.ddx.io pgsql-general@postgresql.org mailing list archive
help / color / mirror / Atom feedPostgreSQL Read-only mode usage
5+ messages / 4 participants
[nested] [flat]
* PostgreSQL Read-only mode usage
@ 2024-02-28 12:34 Jason Long <hack3rcon@yahoo.com>
0 siblings, 2 replies; 5+ messages in thread
From: Jason Long @ 2024-02-28 12:34 UTC (permalink / raw)
To: pgsql-general
Hello,
What is the use of a database in read-only mode?
Thank you.
^ permalink raw reply [nested|flat] 5+ messages in thread
* Re: PostgreSQL Read-only mode usage
@ 2024-02-28 12:53 Francisco Olarte <folarte@peoplecall.com>
parent: Jason Long <hack3rcon@yahoo.com>
1 sibling, 1 reply; 5+ messages in thread
From: Francisco Olarte @ 2024-02-28 12:53 UTC (permalink / raw)
To: Jason Long <hack3rcon@yahoo.com>; +Cc: pgsql-general
On Wed, 28 Feb 2024 at 13:34, Jason Long <hack3rcon@yahoo.com> wrote:
> What is the use of a database in read-only mode?
Normally it is a connection/session to the database what is in
read-only mode, not the whole database.
As it has been pointed out, you connect in read only mode to read, so
you are protected from accidental modifications. Also, knowing your
transactions are not going to write make life easier for optimizers
and other things.
Francisco Olarte.
^ permalink raw reply [nested|flat] 5+ messages in thread
* Re: PostgreSQL Read-only mode usage
@ 2024-02-28 12:55 Andreas Kretschmer <andreas@a-kretschmer.de>
parent: Jason Long <hack3rcon@yahoo.com>
1 sibling, 1 reply; 5+ messages in thread
From: Andreas Kretschmer @ 2024-02-28 12:55 UTC (permalink / raw)
To: pgsql-general@lists.postgresql.org
Am 28.02.24 um 13:34 schrieb Jason Long:
> Hello,
> What is the use of a database in read-only mode?
a standby-database will also be in read-only mode.
Regards, Andreas
--
Andreas Kretschmer
CYBERTEC PostgreSQL Services and Support
^ permalink raw reply [nested|flat] 5+ messages in thread
* Re: PostgreSQL Read-only mode usage
@ 2024-02-28 14:50 Andreas Joseph Krogh <andreas@visena.com>
parent: Andreas Kretschmer <andreas@a-kretschmer.de>
0 siblings, 0 replies; 5+ messages in thread
From: Andreas Joseph Krogh @ 2024-02-28 14:50 UTC (permalink / raw)
To: Andreas Kretschmer <andreas@a-kretschmer.de>; +Cc: pgsql-general@lists.postgresql.org
På onsdag 28. februar 2024 kl. 13:55:34, skrev Andreas Kretschmer <
andreas@a-kretschmer.de <mailto:andreas@a-kretschmer.de>>:
Am 28.02.24 um 13:34 schrieb Jason Long:
> Hello,
> What is the use of a database in read-only mode?
a standby-database will also be in read-only mode.
Right, we have PowerBI connected to a standby-DB, streaming-replication.
--
Andreas Joseph Krogh
CTO / Partner - Visena AS
Mobile: +47 909 56 963
andreas@visena.com <mailto:andreas@visena.com>
www.visena.com <https://www.visena.com;
<https://www.visena.com;
^ permalink raw reply [nested|flat] 5+ messages in thread
* Re: PostgreSQL Read-only mode usage
@ 2024-02-28 15:43 Jason Long <hack3rcon@yahoo.com>
parent: Francisco Olarte <folarte@peoplecall.com>
0 siblings, 0 replies; 5+ messages in thread
From: Jason Long @ 2024-02-28 15:43 UTC (permalink / raw)
To: folarte@peoplecall.com; +Cc: pgsql-general
Hi,1- What does it mean, not the whole database?
2- Can this be considered a kind of guard?
3- Can you tell me a read-only scenario? For example, if we have three servers, then one of the servers can be the main server and the other two servers can be read only.
On Wed, Feb 28, 2024 at 4:24 PM, Francisco Olarte<folarte@peoplecall.com> wrote: On Wed, 28 Feb 2024 at 13:34, Jason Long <hack3rcon@yahoo.com> wrote:
> What is the use of a database in read-only mode?
Normally it is a connection/session to the database what is in
read-only mode, not the whole database.
As it has been pointed out, you connect in read only mode to read, so
you are protected from accidental modifications. Also, knowing your
transactions are not going to write make life easier for optimizers
and other things.
Francisco Olarte.
^ permalink raw reply [nested|flat] 5+ messages in thread
end of thread, other threads:[~2024-02-28 15:43 UTC | newest]
Thread overview: 5+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2024-02-28 12:34 PostgreSQL Read-only mode usage Jason Long <hack3rcon@yahoo.com>
2024-02-28 12:53 ` Francisco Olarte <folarte@peoplecall.com>
2024-02-28 15:43 ` Jason Long <hack3rcon@yahoo.com>
2024-02-28 12:55 ` Andreas Kretschmer <andreas@a-kretschmer.de>
2024-02-28 14:50 ` Andreas Joseph Krogh <andreas@visena.com>
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