Re: Assorted improvements in pg_dump
От | Tom Lane |
---|---|
Тема | Re: Assorted improvements in pg_dump |
Дата | |
Msg-id | 4167039.1635192154@sss.pgh.pa.us обсуждение исходный текст |
Ответ на | Re: Assorted improvements in pg_dump (Andres Freund <andres@anarazel.de>) |
Ответы |
Re: Assorted improvements in pg_dump
Re: Assorted improvements in pg_dump |
Список | pgsql-hackers |
Andres Freund <andres@anarazel.de> writes: > On 2021-10-24 17:10:55 -0400, Tom Lane wrote: >> + static bool query_prepared = false; > I wonder if it'd be better to store this in Archive or such. The approach with > static variables might run into problems with parallel pg_dump at some > point. These objects aren't dumped in parallel yet, but still... Yeah, I wasn't too happy with the static bools either. However, each function would need its own field in the struct, which seems like a maintenance annoyance, plus a big hazard for future copy-and-paste changes (ie, copy and paste the wrong flag name -> trouble). Also the Archive struct is shared between dump and restore cases, so adding a dozen fields that are irrelevant for restore didn't feel right. So I'd like a better idea, but I'm not sure that that one is better. regards, tom lane
В списке pgsql-hackers по дате отправления: