I wrote:
> It might be better to change these to temp tables. You'd then
> have to filter the temp schema out of the results; but since you
> have a filtering function anyway, that doesn't seem too hard.
Or even easier, ALTER TABLE SET autovacuum_enabled = 'false'
before populating them.
regards, tom lane