[PERFORM] TRUNCATE TABLE

2007-07-11 Thread Adriaan van Os
ve to TRUNCATE TABLE I tried to CREATE and DROP a table, but that wasn't any faster. Sincerely, Adriaan van Os ---(end of broadcast)--- TIP 7: You can help support the PostgreSQL project by donating at http://www.postgresql.org/about/donate

Re: [PERFORM] TRUNCATE TABLE

2007-07-12 Thread Adriaan van Os
Gregory Stark wrote: That's strange. Deleting should be the *quickest* operation in Postgres. Do you perchance have foreign key references referencing this table? No. Do you have any triggers? No. Tom Lane wrote: Adriaan van Os <[EMAIL PROTECTED]> writes: Surprisingly,

Re: [PERFORM] TRUNCATE TABLE

2007-07-13 Thread Adriaan van Os
ow at creating and deleting files, see <http://en.wikipedia.org/wiki/XFS> and <http://everything2.com/index.pl?node_id=1479435>. Regards, Adriaan van Os ---(end of broadcast)--- TIP 4: Have you searched our list archives?

Re: [PERFORM] TRUNCATE TABLE

2007-07-13 Thread Adriaan van Os
ta takes 1 ms in one test and takes 532 ms in another one. The database has no foreign keys. Based on these results, I still believe there is a problem in Postgres. Regards, Adriaan van Os ---(end of broadcast)--- TIP 3: Have you

Re: [PERFORM] TRUNCATE TABLE

2007-07-13 Thread Adriaan van Os
Tom Lane wrote: Adriaan van Os <[EMAIL PROTECTED]> writes: I started another test. I copied an existing database (not very large, 35 tables, typically a few hundred up to a few thousand records) with CREATE DATABASE testdb TEMPLATE mydb and started to remove random tables from testdb wit

Re: [PERFORM] TRUNCATE TABLE

2007-07-18 Thread Adriaan van Os
as much as those of TRUNCATE TABLE. Your observations on the time needed to open a file confirm that, I think. In my test databases, autovacuum is off. Regards, Adriaan van Os ---(end of broadcast)--- TIP 9: In versions below 8.0, the planner w

Re: [PERFORM] insert vs select into performance

2007-07-18 Thread Adriaan van Os
't be cleaned up). So, how does one (temporarily) disable WAL logging ? Or, for example, disable WAL logging for a temporary table ? Regards, Adriaan van Os ---(end of broadcast)--- TIP 6: explain analyze is your friend

Re: [PERFORM] TRUNCATE TABLE

2007-08-01 Thread Adriaan van Os
port ? Regards, Adriaan van Os ---(end of broadcast)--- TIP 5: don't forget to increase your free space map settings

Re: [PERFORM] TRUNCATE TABLE

2007-08-04 Thread Adriaan van Os
tovac itself doesn't create or delete any files, so what's up here? Have you ruled out checkpoints as the culprit? That's a good question. I will do some more tests, but I also suspect fsync "cascading" <http://www.uwsg.iu.edu/hypermail/linux/kernel/0708