Ambiguos statement in wal-async-commit page

Поиск
Список
Период
Сортировка
От PG Doc comments form
Тема Ambiguos statement in wal-async-commit page
Дата
Msg-id 158681229064.25695.12299508971635249207@wrigleys.postgresql.org
обсуждение исходный текст
Ответы Re: Ambiguos statement in wal-async-commit page  (Laurenz Albe <laurenz.albe@cybertec.at>)
Список pgsql-docs
The following documentation comment has been logged on the website:

Page: https://www.postgresql.org/docs/12/wal-async-commit.html
Description:

In this page:
https://www.postgresql.org/docs/current/wal-async-commit.html

In this paragraph:
Certain utility commands, for instance DROP TABLE, are forced to commit
synchronously regardless of the setting of synchronous_commit. This is to
ensure consistency between the server's file system and the logical state of
the database. The commands supporting two-phase commit, such as PREPARE
TRANSACTION, are also always synchronous.

> This is to ensure consistency between the server's file system and the
logical state of the database.

Here I don't understand how inconsistency is introduced, if  DROP TABLE or
PREPARE transactions is not logged.
Considering drop table is like any other transaction, the user is informed
that the table is dropped, and the system crashed, it didn't actually
perform the action of dropping table nor was it logged in WAL, then how it
would cause inconsistency.
Isn't it similar to losing any other last transaction, if not logged.

Thank you.

В списке pgsql-docs по дате отправления:

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: Getting our tables to render better in PDF output
Следующее
От: Laurenz Albe
Дата:
Сообщение: Re: Ambiguos statement in wal-async-commit page