public inbox for [email protected]
help / color / mirror / Atom feedCREATE DATABASE command concurrency
2+ messages / 2 participants
[nested] [flat]
* CREATE DATABASE command concurrency
@ 2024-09-17 21:52 Wizard Brony <[email protected]>
0 siblings, 1 reply; 2+ messages in thread
From: Wizard Brony @ 2024-09-17 21:52 UTC (permalink / raw)
To: [email protected]
What are the concurrency guarantees of the CREATE DATABASE command? For example, is the CREATE DATABASE command safe to be called concurrently such that one command succeeds and the other reliably fails without corruption?
^ permalink raw reply [nested|flat] 2+ messages in thread
* Re: CREATE DATABASE command concurrency
@ 2024-09-19 03:53 Muhammad Usman Khan <[email protected]>
parent: Wizard Brony <[email protected]>
0 siblings, 0 replies; 2+ messages in thread
From: Muhammad Usman Khan @ 2024-09-19 03:53 UTC (permalink / raw)
To: Wizard Brony <[email protected]>; +Cc: [email protected]
Hi,
In PostgreSQL, it's safe to run CREATE DATABASE at the same time from
different places. If two commands try to create the same database, one will
succeed, and the other will safely fail without causing any problems or
incomplete database creation.
On Wed, 18 Sept 2024 at 19:08, Wizard Brony <[email protected]> wrote:
> What are the concurrency guarantees of the CREATE DATABASE command? For
> example, is the CREATE DATABASE command safe to be called concurrently such
> that one command succeeds and the other reliably fails without corruption?
>
>
>
^ permalink raw reply [nested|flat] 2+ messages in thread
end of thread, other threads:[~2024-09-19 03:53 UTC | newest]
Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2024-09-17 21:52 CREATE DATABASE command concurrency Wizard Brony <[email protected]>
2024-09-19 03:53 ` Muhammad Usman Khan <[email protected]>
This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox