Postgresql – how to swap table results at the end of long running function
We have a function that builds a summary table and takes about 50-130 secs on average depending on data like so Truncate table summaryTable ; -- multiple insert statements and couple of loops... insert into summaryTable ..... The process fails…