Auto-increment and data importing: problem pointed out in PHP builder review?

Поиск
Список
Период
Сортировка
От Randall Parker
Тема Auto-increment and data importing: problem pointed out in PHP builder review?
Дата
Msg-id 23010823131285@mail.nls.net
обсуждение исходный текст
Ответы Re: Auto-increment and data importing: problem pointed out in PHP builder review?  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-general
Are the following comments correct?

In particular, on his second complaint about the import and auto_increment: via what manner can one import a bunch of
recordsand then not have the auto_increment next value be correct? I looked thru  
the faq (4.16.x doesn't mention this) and and some of the manuals (admin and user) didn't see anything relevant to this
issuesecond issue.  

http://www.phpbuilder.com/columns/tim20000705.php3?page=1
   Excerpt:
At this point, I ran into another small issue with Postgres - its "serial" data type (the
equivalent of MySQL's auto_increment) creates a "sequence" which does not get
dropped when its parent table is dropped. So if you try to re-create the table,
you'll get a name conflict for this sequence. A lot of new users would be
confused by this, so Postgres loses a couple points for that. Also, MySQL is
"smart" enough to increment its auto_increment value when you import data,
whereas Postgres' sequence does not get reset when you import data, causing all
new inserts to fail.

Aside: does anyone know a good easy way with Apache to use some off-the-shelf plug-in to be able to dump a bunch of
HTMLdoc in a directory (the PostgreSQL doc is what I have in mind) and index it  
and have a form where you can search it from?



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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: Slashdot discussion
Следующее
От: "Peter Mount"
Дата:
Сообщение: Re: Using the JDBC Driver in version 7.02