On Wed, Dec 14, 2022 at 1:18 PM Greg Stark <stark@mit.edu> wrote:
> So I don't see any evidence we skip any locking on pg_class when doing
> updates on rows for temporary tables.
I don't know what this means. You don't have to lock pg_class to
update rows in any table, whether temporary or otherwise.
You do have to lock a table in order to update its pg_class row,
though, whether the table is temporary or not. Otherwise, another
session could drop it while you're doing something with it, after
which bad things would happen.
--
Robert Haas
EDB: http://www.enterprisedb.com