0

I'm trying to truncate 206,686 rows (exactly) from a table using Postgres. I'm looking for the most effective way to do so, using truncate query - I had it running for 3 hours this morning and with no luck, it still was "running" and no rows were truncated at all.

What's the best way to truncate large amounts of data in excess of 200k+?

Query displaying count:

SELECT count(*) FROM <removed>;

Output: count = 206686

There is no locks in place currently:

blocked_pid | blocked_user | blocking_pid | blocking_user | blocked_statement | current_statement_in_blocking_process 
-------------+--------------+--------------+---------------+-------------------+---------------------------------------
(0 rows)

0 Answers0