Re: Do not lock temp relations

2024-10-22 Thread Daniil Davydov
On Mon, 30 Sept 2024 at 18:05, Tom Lane wrote: > Yes. Our implementation restrictions preclude access to the contents > of another session's temp tables, but it is not forbidden to do DDL > on them so long as no content access is required. (Without this, > it'd be problematic for example to clean

Re: Do not lock temp relations

2024-10-22 Thread Daniil Davydov
> Yes. Our implementation restrictions preclude access to the contents > of another session's temp tables, but it is not forbidden to do DDL > on them so long as no content access is required. (Without this, > it'd be problematic for example to clean out a crashed session's temp > tables. See the "

Re: Do not lock temp relations

2024-10-03 Thread Maxim Orlov
On Mon, 30 Sept 2024 at 18:05, Tom Lane wrote: > Yes. Our implementation restrictions preclude access to the contents > of another session's temp tables, but it is not forbidden to do DDL > on them so long as no content access is required. (Without this, > it'd be problematic for example to cle

Re: Do not lock temp relations

2024-09-30 Thread Tom Lane
Maxim Orlov writes: > But for the second one: do we really need any lock for temp relations? Yes. Our implementation restrictions preclude access to the contents of another session's temp tables, but it is not forbidden to do DDL on them so long as no content access is required. (Without this,

Do not lock temp relations

2024-09-30 Thread Maxim Orlov
Hi! Working with temp relations is some kind of bottleneck in Postgres, in my view. There are no problems if you want to handle it from time to time, not arguing that. But if you have to make a massive temp tables creation/deletion, you'll soon step into a performance degradation. To the best of