@@ -377,12 +377,10 @@ CREATE SCHEMA test_nonexistance;
377
377
ALTER TABLE IF EXISTS test_nonexistance.nonexistent_table RENAME TO other_table_name;
378
378
NOTICE: relation "nonexistent_table" does not exist, skipping
379
379
/* renaming existent tables already tested earlier (see rename.plain_test) */
380
- ALTER TABLE IF EXISTS test_nonexistance.nonexistent_table ADD COLUMN IF NOT EXISTS j INT4;
380
+ ALTER TABLE IF EXISTS test_nonexistance.nonexistent_table ADD COLUMN j INT4;
381
381
NOTICE: relation "nonexistent_table" does not exist, skipping
382
382
CREATE TABLE test_nonexistance.existent_table(i INT4);
383
- ALTER TABLE IF EXISTS test_nonexistance.existent_table ADD COLUMN IF NOT EXISTS i INT4;
384
- NOTICE: column "i" of relation "existent_table" already exists, skipping
385
- ALTER TABLE IF EXISTS test_nonexistance.existent_table ADD COLUMN IF NOT EXISTS j INT4;
383
+ ALTER TABLE IF EXISTS test_nonexistance.existent_table ADD COLUMN j INT4;
386
384
SELECT attname FROM pg_attribute WHERE attnum > 0 AND attrelid = 'test_nonexistance.existent_table'::REGCLASS;
387
385
attname
388
386
---------
0 commit comments