| From: | Rob Sargent <robjsargent(at)gmail(dot)com> |
|---|---|
| To: | pgsql-sql(at)lists(dot)postgresql(dot)org |
| Subject: | Re: Long running processes and commit writing to disk |
| Date: | 2022-04-08 17:05:08 |
| Message-ID: | 17a3b7ea-5334-c3f6-577b-a582a64d7548@gmail.com |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-general pgsql-sql |
On 4/8/22 10:52, Mike Sofen wrote:
>
> *From:* Shaozhong SHI <shishaozhong(at)gmail(dot)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.)
| From | Date | Subject | |
|---|---|---|---|
| Next Message | W.P. | 2022-04-08 17:18:37 | Re: Problem with PG 11 database on OrangePi3 (ARMBIAN, ARM64) after disk disrupion (problem with USB disk connection) |
| Previous Message | Mike Sofen | 2022-04-08 16:52:23 | RE: Long running processes and commit writing to disk |
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Ron | 2022-04-08 18:01:23 | Re: Long running processes and commit writing to disk |
| Previous Message | Mike Sofen | 2022-04-08 16:52:23 | RE: Long running processes and commit writing to disk |