Programmatically dropping and creating table

Поиск
Список
Период
Сортировка
От Chris White
Тема Programmatically dropping and creating table
Дата
Msg-id 00a601c26b26$6f6a9360$ff926b80@amer.cisco.com
обсуждение исходный текст
Ответы Re: Programmatically dropping and creating table  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-jdbc
I am running Postgresql 7.2 and programmatically trying to drop a table called vm_config and then recreate it from java. The drop seems to work, but when I try to recreate the table I get a SQL exception saying "ERROR: cannot create vm_config: file exists". If I do a commit after the drop and then do the create I get the SQL Exception "ERROR: cannot create vm_config_pkey: file exists". What am I doing wrong?
 
Chris White

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

Предыдущее
От: Barry Lind
Дата:
Сообщение: Re: Huh? ErrorCode/SQLstate are null?
Следующее
От: Tom Lane
Дата:
Сообщение: Re: Programmatically dropping and creating table