Re: COPY with no WAL, in certain circumstances
| От | Tom Lane |
|---|---|
| Тема | Re: COPY with no WAL, in certain circumstances |
| Дата | |
| Msg-id | 2036.1168136282@sss.pgh.pa.us обсуждение исходный текст |
| Ответ на | Re: COPY with no WAL, in certain circumstances ("Simon Riggs" <simon@2ndquadrant.com>) |
| Ответы |
Re: COPY with no WAL, in certain circumstances
|
| Список | pgsql-patches |
"Simon Riggs" <simon@2ndquadrant.com> writes:
> The rule is: if the relfilenode for a table is new in this transaction
> (and therefore the whole things will be dropped at end-of-transaction)
> then *all* COPY commands are able to avoid writing WAL safely, if:
> - PITR is not enabled
> - there is no active portal (which could have been opened on an earlier
> commandid and could therefore see data prior to the switch to the new
> relfilenode). In those cases, *not* using WAL causes no problems at all,
> so sleep well without it.
Uh ... what in the world has an active portal got to do with it?
I think you've confused snapshot considerations with crash recovery.
regards, tom lane
В списке pgsql-patches по дате отправления: