Re: Feature Suggestion: Make synchronous_commit a table level property - Mailing list pgsql-hackers

From Christoph Moench-Tegeder
Subject Re: Feature Suggestion: Make synchronous_commit a table level property
Date
Msg-id aC8ArUZvrWpdGAXX@sciurus.exwg.net
Whole thread Raw
In response to Feature Suggestion: Make synchronous_commit a table level property  (Anas-ur-Rasheed Khan <annicheez@gmail.com>)
Responses Re: Feature Suggestion: Make synchronous_commit a table level property
List pgsql-hackers
## Anas-ur-Rasheed Khan (annicheez@gmail.com):

> We have a use case where some tables are derived, i.e., can be
> reconstructed entirely from 'source' tables (similar to views, but more
> complex mathematical transformations are applied). Data integrity and
> durability are important for 'source' tables, but not so much for derived
> tables. In the event of a crash, it is important that we can recover data
> from volatile memory for 'source' tables.

Did you consider unlogged tables?
https://www.postgresql.org/docs/current/sql-createtable.html#SQL-CREATETABLE-UNLOGGED
The documentation says "considerably faster than ordinary tables" but
"automatically truncated after a crash" which might fit your
requirements.

"Synchronous Commit" should be understood as transaction property and
does not really work on a table level.

Regards,
Christoph

-- 
Spare Space.



pgsql-hackers by date:

Previous
From: Andy Fan
Date:
Subject: Re: Feature Suggestion: Make synchronous_commit a table level property
Next
From: Álvaro Herrera
Date:
Subject: Re: queryId constant squashing does not support prepared statements