pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
Long running processes and commit writing to disk
5+ messages / 4 participants
[nested] [flat]

* Long running processes and commit writing to disk
@ 2022-04-08 16:39  Shaozhong SHI <shishaozhong@gmail.com>
  0 siblings, 2 replies; 5+ messages in thread

From: Shaozhong SHI @ 2022-04-08 16:39 UTC (permalink / raw)
  To: pgsql-sql <pgsql-sql@lists.postgresql.org>

When long running processes got disrupted, one may not see any expected
result.

How to make sure that the result of each operation is saved to disk in a
loop?

Regards,

David

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

* Long running processes and commit writing to disk
@ 2022-04-08 16:39  Shaozhong SHI <shishaozhong@gmail.com>
  parent: Shaozhong SHI <shishaozhong@gmail.com>
  1 sibling, 1 reply; 5+ messages in thread

From: Shaozhong SHI @ 2022-04-08 16:39 UTC (permalink / raw)
  To: pgsql-general <pgsql-general@lists.postgresql.org>

When long running processes got disrupted, one may not see any expected
result.

How to make sure that the result of each operation is saved to disk in a
loop?

Regards,

David

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

* RE: Long running processes and commit writing to disk
@ 2022-04-08 16:52  Mike Sofen <msofen@runbox.com>
  parent: Shaozhong SHI <shishaozhong@gmail.com>
  1 sibling, 1 reply; 5+ messages in thread

From: Mike Sofen @ 2022-04-08 16:52 UTC (permalink / raw)
  To: 'pgsql-sql' <pgsql-sql@lists.postgresql.org>

From: Shaozhong SHI <shishaozhong@gmail.com>   Sent: Friday, April 08, 2022 9:39 AM



When long running processes got disrupted, one may not see any expected result.

How to make sure that the result of each operation is saved to disk in a loop?

Regards,

David

 

 

Simple:  don’t use a database – you’re asking to violate ACID.  

 

A database’s power comes from set-based operations.  You’re asking to do single row operations.  Use a spreadsheet...or a plain text file and treat it like a log.

 

Mike

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

* Re: Long running processes and commit writing to disk
@ 2022-04-08 17:05  Rob Sargent <robjsargent@gmail.com>
  parent: Mike Sofen <msofen@runbox.com>
  0 siblings, 0 replies; 5+ messages in thread

From: Rob Sargent @ 2022-04-08 17:05 UTC (permalink / raw)
  To: pgsql-sql@lists.postgresql.org

On 4/8/22 10:52, Mike Sofen wrote:
>
> *From:* Shaozhong SHI <shishaozhong@gmail.com> *Sent:* Friday, April 
> 08, 2022 9:39 AM
>
> When long running processes got disrupted, one may not see any 
> expected result.
>
> How to make sure that the result of each operation is saved to disk in 
> a loop?
>
> Regards,
>
> David
>
> Simple:  don’t use a database – you’re asking to violate ACID.
>
> A database’s power comes from set-based operations.  You’re asking to 
> do single row operations.  Use a spreadsheet...or a plain text file 
> and treat it like a log.
>
> Mike
>
Or commit every loop (perhaps every N loops, depending on how much 
you're prepared to re-do.)

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

* Re: Long running processes and commit writing to disk
@ 2022-04-08 18:01  Ron <ronljohnsonjr@gmail.com>
  parent: Shaozhong SHI <shishaozhong@gmail.com>
  0 siblings, 0 replies; 5+ messages in thread

From: Ron @ 2022-04-08 18:01 UTC (permalink / raw)
  To: pgsql-general@lists.postgresql.org

On 4/8/22 11:39, Shaozhong SHI wrote:
>
> When long running processes got disrupted, one may not see any expected 
> result.
>
> How to make sure that the result of each operation is saved to disk in a loop?

That would of course depend on how often you begin and commit transactions.


-- 
Angular momentum makes the world go 'round.

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


end of thread, other threads:[~2022-04-08 18:01 UTC | newest]

Thread overview: 5+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2022-04-08 16:39 Long running processes and commit writing to disk Shaozhong SHI <shishaozhong@gmail.com>
2022-04-08 16:39 ` Shaozhong SHI <shishaozhong@gmail.com>
2022-04-08 18:01   ` Ron <ronljohnsonjr@gmail.com>
2022-04-08 16:52 ` Mike Sofen <msofen@runbox.com>
2022-04-08 17:05   ` Rob Sargent <robjsargent@gmail.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