Drop table vs begin/end transaction

Поиск
Список
Период
Сортировка
От Francisco Reyes
Тема Drop table vs begin/end transaction
Дата
Msg-id 20011117231740.S69022-100000@zoraida.natserv.net
обсуждение исходный текст
Ответы Re: Drop table vs begin/end transaction  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-novice
I have a table which I will populate every day from scratch (data coming
from a Foxpro system) and I am wandering if I could do something like:

begin transaction
drop table <name>
\i <create table script>
copy from <ascii file>
end transaction

Can this be done? In particular will the drop table honor begin/end?

My alternative is to use delete from <table>. Besides been slower I wonder
if this would not make my "vacuum analyze" run much slower.



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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: switching from mysql
Следующее
От: Tom Lane
Дата:
Сообщение: Re: Drop table vs begin/end transaction