I've been trying to update a column of integers called level_dept in a table called adminboundaries within the sql query tool on pgadmin3 and the query runs and finishes with a lot of lag, but 0 rows are affected. I didn't receive any syntax errors and I've set the privileges to allows the user role to perform all actions, are there any other particular settings or things I should check that I should know about?
BEGIN;
EXPLAIN ANALYZE
UPDATE AdminBoundaries
SET "LEVEL_DEPT" = "LEVEL_DEPT" - 1
WHERE "NAME_3" = NULL AND "LEVEL_DEPT" = 3;
COMMIT;
Error Log:
2013-01-03 15:58:03 EST STATEMENT: BEGIN;
EXPLAIN ANALYZE
UPDATE AdminBoundaries
SET "LEVEL_DEPT" = "LEVEL_DEPT" - 1
WHERE "NAME_3" = NULL AND "LEVEL_DEPT" = 3;
COMMIT;
Despite trying a few variations of syntax, I think it might be a pgadmin related issue? I'm not sure though. I'm considering changing the postgresql.conf file. I've already enabled seq_scan to be off. There are other parameters I'm considering changing.
Is it necessary to look into the nuances of postgresql as far as dirty reads, commit delays, etc when processing in a table of only 250k rows?