Re: Too slow to create new schema and their tables, functions,triggers. - Mailing list pgsql-general

From PegoraroF10
Subject Re: Too slow to create new schema and their tables, functions,triggers.
Date
Msg-id 1564092985717-0.post@n3.nabble.com
Whole thread Raw
In response to Re: Too slow to create new schema and their tables, functions,triggers.  (Adrian Klaver <adrian.klaver@aklaver.com>)
Responses Re: Too slow to create new schema and their tables, functions,triggers.  (Adrian Klaver <adrian.klaver@aklaver.com>)
Re: Too slow to create new schema and their tables, functions,triggers.  (Thomas Kellerer <spam_eater@gmx.net>)
List pgsql-general
So, what should I tune on autovacuum ?
My script was running strangely. Postgres log shows me the time spent to
create functions. That happens when creating triggers and tables too.
Sometimes it´s too fast and sometimes ...

statement: create or replace function valoresdfe...     0 mins 1.135 secs
statement: create or replace function dadosorigem...    0 mins 0.055 secs
statement: CREATE OR REPLACE FUNCTION SONU...           0 mins 0.013 secs
statement: create or replace function contatoscampa...    2 mins 13.492 secs
statement: create or replace function FORMATARTELEF...  0 mins 0.013 secs
statement: create or replace function ChecaVar          0 mins 0.012 secs
statement: CREATE or replace FUNCTION criatrigge...     1 mins 16.42 secs

So, is this a vacuum problem ? What do I need to configure it  ?
And again, if I do a Reindex database before creating that schema, it works
perfectly.



--
Sent from: https://www.postgresql-archive.org/PostgreSQL-general-f1843780.html



pgsql-general by date:

Previous
From: Kevin Brannen
Date:
Subject: RE: SELECT INTO question
Next
From: Adrian Klaver
Date:
Subject: Re: Too slow to create new schema and their tables, functions,triggers.