Create unlogged table
suggest changeYou can create unlogged tables when you need faster writes. An unlogged table skips the write-ahead log, so it is not crash-safe and is not replicated to standbys. Its contents are truncated after a crash or an unclean shutdown.
CREATE UNLOGGED TABLE person (
person_id BIGINT NOT NULL PRIMARY KEY,
last_name VARCHAR(255) NOT NULL,
first_name VARCHAR(255),
address VARCHAR(255),
city VARCHAR(255)
);
Found a mistake? Have a question or improvement idea?
Let me know.
Table Of Contents