Re: pg_dump future problem.

Поиск
Список
Период
Сортировка
От Philip Warner
Тема Re: pg_dump future problem.
Дата
Msg-id 5.1.0.14.0.20030506010434.047fc048@mail.rhyme.com.au
обсуждение исходный текст
Ответ на Re: pg_dump future problem.  (Tom Lane <tgl@sss.pgh.pa.us>)
Ответы Re: pg_dump future problem.  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-hackers
At 10:58 AM 5/05/2003 -0400, Tom Lane wrote:
>Philip Warner <pjw@rhyme.com.au> writes:
>
> > In this case I think they have shot themselves in the foot; the docs
> > clearly state that setval/3 is for internal pg_dump use only.
>
>There is no such statement visible in
>http://www.ca.postgresql.org/users-lounge/docs/7.3/postgres/functions-sequence.html
>nor do I find it anywhere else in the current documents.

Good point. It's only in the source code. I thought I had updated the docs 
as well...


> > It is also
> > not to be relied upon when there are more than one connection to the db
> > updating the sequence.
>
>Any more or less so than either two-parameter SETVAL or the proposed
>ALTER TABLE?  I don't see how.

My recollection is that setting is_called is more fragile than just setting 
the sequence value, so it not wise to use in general.


>It probably would look different if we were starting from scratch
>... but we aren't, and I don't see any problems here that are large
>enough to justify starting over.

I'm not actually suggesting starting over. Just presenting a nicer 
interface and fixing a bug in the process, rather than building yet another 
user-visible function as a band-aid solution.



----------------------------------------------------------------
Philip Warner                    |     __---_____
Albatross Consulting Pty. Ltd.   |----/       -  \
(A.B.N. 75 008 659 498)          |          /(@)   ______---_
Tel: (+61) 0500 83 82 81         |                 _________  \
Fax: (+61) 03 5330 3172          |                 ___________ |
Http://www.rhyme.com.au          |                /           \|                                 |    --________--
PGP key available upon request,  |  /
and from pgp5.ai.mit.edu:11371   |/



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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: pg_dump future problem.
Следующее
От: Stephan Szabo
Дата:
Сообщение: Re: Why are triggers semi-deferred?