Re: pg_dump --snapshot

Поиск
Список
Период
Сортировка
Искать
От
Stephen Frost
Тема
Re: pg_dump --snapshot
Дата
в 00:19:05
Msg-id
20130507001826.GN4361@tamriel.snowman.net
Ответ на
Список
Дерево обсуждения
pg_dump --snapshot Simon Riggs <simon@2ndQuadrant.com>
Re: pg_dump --snapshot Andrew Dunstan <andrew@dunslane.net>
Re: pg_dump --snapshot Simon Riggs <simon@2ndQuadrant.com>
Re: pg_dump --snapshot Tom Lane <tgl@sss.pgh.pa.us>
Re: pg_dump --snapshot Andres Freund <andres@2ndquadrant.com>
Re: pg_dump --snapshot Stephen Frost <sfrost@snowman.net>
Re: pg_dump --snapshot Andres Freund <andres@2ndquadrant.com>
Re: pg_dump --snapshot Simon Riggs <simon@2ndQuadrant.com>
Re: pg_dump --snapshot Tom Lane <tgl@sss.pgh.pa.us>
Re: pg_dump --snapshot Simon Riggs <simon@2ndQuadrant.com>
Re: pg_dump --snapshot Stephen Frost <sfrost@snowman.net>
Re: pg_dump --snapshot Andres Freund <andres@2ndquadrant.com>
Re: pg_dump --snapshot Andres Freund <andres@2ndquadrant.com>
Re: pg_dump --snapshot Stephen Frost <sfrost@snowman.net>
Re: pg_dump --snapshot Andres Freund <andres@2ndquadrant.com>
Re: pg_dump --snapshot Stephen Frost <sfrost@snowman.net>
Re: pg_dump --snapshot Andres Freund <andres@2ndquadrant.com>
Re: pg_dump --snapshot Stephen Frost <sfrost@snowman.net>
Re: pg_dump --snapshot Andres Freund <andres@2ndquadrant.com>
Re: pg_dump --snapshot Stephen Frost <sfrost@snowman.net>
Re: pg_dump --snapshot Greg Stark <stark@mit.edu>
Re: pg_dump --snapshot Stephen Frost <sfrost@snowman.net>
Re: pg_dump --snapshot Andres Freund <andres@2ndquadrant.com>
Re: pg_dump --snapshot Tom Lane <tgl@sss.pgh.pa.us>
Re: pg_dump --snapshot Simon Riggs <simon@2ndQuadrant.com>
Re: pg_dump --snapshot Stephen Frost <sfrost@snowman.net>
Re: pg_dump --snapshot Stephen Frost <sfrost@snowman.net>
Re: pg_dump --snapshot Andres Freund <andres@2ndquadrant.com>
Re: pg_dump --snapshot Robert Haas <robertmhaas@gmail.com>
Re: pg_dump --snapshot Dimitri Fontaine <dimitri@2ndQuadrant.fr>
Re: pg_dump --snapshot bricklen <bricklen@gmail.com>
Re: pg_dump --snapshot Simon Riggs <simon@2ndQuadrant.com>
Re: pg_dump --snapshot Greg Stark <stark@mit.edu>
Re: pg_dump --snapshot Simon Riggs <simon@2ndQuadrant.com>
Re: pg_dump --snapshot Greg Stark <stark@mit.edu>
Re: pg_dump --snapshot Stephen Frost <sfrost@snowman.net>
Re: pg_dump --snapshot Joe Conway <mail@joeconway.com>
Re: pg_dump --snapshot Craig Ringer <craig@2ndquadrant.com>
Simon,

* Simon Riggs (simon@2ndQuadrant.com) wrote:
> If anybody really wanted to fix pg_dump, they could do. If that was so
> important, why block this patch, but allow parallel pg_dump to be
> committed without it?

Because parallel pg_dump didn't make the problem any *worse*..?  This
does.  The problem existed before parallel pg_dump.

> There is no risk that is larger than the one already exposed by the
> existing user API.

The API exposes it, yes, but *pg_dump* isn't any worse than it was
before.

> If you do see a risk in the existing API, please deprecate it and
> remove it from the docs, or mark it not-for-use-by-users. I hope you
> don't, but if you do, do it now - I'll be telling lots of people about
> all the useful things you can do with it over the next few years,
> hopefully in pg_dump as well.

pg_dump uses it already and uses it as best it can.  Users could use it
also, provided they understand the constraints around it.  However,
there really isn't a way for users to use this new option correctly-
they would need to intuit what pg_dump will want to lock, lock it
immediately after their transaction is created, and only *then* get the
snapshot ID and pass it to pg_dump, hoping against hope that pg_dump
will actually need the locks that they decided to acquire..
Thanks,
	Stephen
В списке pgsql-hackers по дате отправления
От: Simon Riggs
Дата:
Сообщение: Re: pg_dump --snapshot
От: Andres Freund
Дата:
Сообщение: Re: pg_dump --snapshot
FAQ