Locks on unlogged tables are locked?! - Mailing list pgsql-hackers

From Laurenz Albe
Subject Locks on unlogged tables are locked?!
Date
Msg-id 1527172391.2837.41.camel@cybertec.at
Whole thread Raw
Responses Re: Locks on unlogged tables are locked?!  (Bruce Momjian <bruce@momjian.us>)
List pgsql-hackers
While looking at this:
https://stackoverflow.com/q/50413623/6464308
I realized that "LOCK TABLE <unlogged table>" puts a
Standby/LOCK into the WAL stream, which causes a log flush
at COMMIT time.

That hurts performance, and I doubt that it is necessary.
At any rate, DROP TABLE on an unlogged table logs nothing.

The attached patch would take care of it, but I'm not sure
if that's the right place to check.

Yours,
Laurenz Albe
Attachment

pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: Function Overloading
Next
From: Tom Lane
Date:
Subject: Re: PG11 jit failing on ppc64el