Re: pg_dump broken for non-super user

Поиск
Список
Период
Сортировка
От Stephen Frost
Тема Re: pg_dump broken for non-super user
Дата
Msg-id 20160505000526.GK10850@tamriel.snowman.net
обсуждение исходный текст
Ответ на Re: pg_dump broken for non-super user  (Tom Lane <tgl@sss.pgh.pa.us>)
Ответы Re: pg_dump broken for non-super user  (Rushabh Lathia <rushabh.lathia@gmail.com>)
Список pgsql-hackers
* Tom Lane (tgl@sss.pgh.pa.us) wrote:
> Stephen Frost <sfrost@snowman.net> writes:
> > Attached patch implements this change to not LOCK the table in cases
> > where we don't need to.  I'll push this with my other changes to pg_dump
> > tomorrow (and I've included it in an updated, complete, set of patches
> > sent on the thread where those changes were being discussed already).
>
> > Wanted to include it here also for completeness.
>
> > Comments welcome, of course.
>
> Minor suggestion: instead of putting these comments and hardwired
> knowledge here, I'd suggest putting them adjacent to the list of
> DUMP_COMPONENT #defines, creating a symbol along the lines of
> DUMP_COMPONENTS_REQUIRING_TABLE_LOCK.  That approach would make it
> far more likely that somebody changing the list of DUMP_COMPONENT
> elements in future would notice the possible need to adjust the
> requires-lock list.

Good thought, I'll do that.

Thanks!

Stephen

В списке pgsql-hackers по дате отправления:

Предыдущее
От: Noah Misch
Дата:
Сообщение: Re: pg_dump dump catalog ACLs
Следующее
От: Andres Freund
Дата:
Сообщение: Re: Reviewing freeze map code