Re: Calling PrepareTempTablespaces in BufFileCreateTemp
| От | Tom Lane |
|---|---|
| Тема | Re: Calling PrepareTempTablespaces in BufFileCreateTemp |
| Дата | |
| Msg-id | 8377.1556291111@sss.pgh.pa.us обсуждение исходный текст |
| Ответ на | Re: Calling PrepareTempTablespaces in BufFileCreateTemp (Michael Paquier <michael@paquier.xyz>) |
| Ответы |
Re: Calling PrepareTempTablespaces in BufFileCreateTemp
Re: Calling PrepareTempTablespaces in BufFileCreateTemp |
| Список | pgsql-hackers |
Michael Paquier <michael@paquier.xyz> writes:
> I think that one piece is missing from the patch. Wouldn't it be
> better to add an assertion at the beginning of OpenTemporaryFile() to
> make sure that PrepareTempTablespaces() has been called when interXact
> is true? We could just go with that:
> Assert(!interXact || TempTablespacesAreSet());
The version that I posted left it to GetNextTempTableSpace to assert
that. That seemed cleaner to me than an Assert that has to depend
on interXact.
regards, tom lane
В списке pgsql-hackers по дате отправления: