Create unlogged table

suggest change

You 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)
);

Feedback about page:

Feedback:
Optional: your email if you want me to get back to you:



Table Of Contents