RE: UPDATE many records

2020-01-07 Thread Mark Zellers
You don’t tell us if other users will be concurrently changing any of the records involved. If you could guarantee that the table won’t be changed, you might be better off doing a CREATE TABLE table_new as SELECT … FROM table_old, dropping table_old, and finally renaming table_new. Given the

RE: UPDATE many records

2020-01-06 Thread Mark Zellers
Just out of curiosity, what kind of trigger are you using, a row level trigger or a statement level trigger? If you are using a row level trigger, see if you can achieve your requirements using a statement level trigger instead. I’m relatively new to Postgres, so there could be some limit that

RE: Migrating an application with Oracle temporary tables

2019-05-02 Thread Mark Zellers
lbe Sent: Thursday, May 2, 2019 1:00 AM To: Mark Zellers ; pgsql-general@lists.postgresql.org Subject: Re: Migrating an application with Oracle temporary tables Mark Zellers wrote: > One of the issues I have run into in migrating from Oracle to PostgreSQL is > the difference in tempor

Migrating an application with Oracle temporary tables

2019-05-02 Thread Mark Zellers
One of the issues I have run into in migrating from Oracle to PostgreSQL is the difference in temporary table behavior. I've come up with what I think is a cunning plan, but I wonder if anyone with more PostgreSQL understanding can shoot holes in it. Oracle defines their temporary tables stati