Re: More info on pg_stat_activity Wait Event Name when is DataFileRead

2021-04-19 Thread PegoraroF10
I´m sure problem was hardware and I hope it does not occur anymore. If I have a logical replication and on replica I do a Vacuum Full, Cluster or any other EXCLUSIVE LOCK operation which, replication will wait for that. I was thinking was about a time to release that lock, or in my situation a har

More info on pg_stat_activity Wait Event Name when is DataFileRead

2021-04-17 Thread PegoraroF10
I have a Publication/Subscription. Then 10 days ago my replication just stopped, no one interesting message log on both sides. Then select from pg_stat_replication was empty and some time later, an hour or two, pg_stat_replication came back showing a record like it should. Well, it´s replicating ?

anonymous block returning like a function

2020-12-11 Thread PegoraroF10
I would like to have an anonymous block, like DO, but having resuts, like an usual function does. I know any user can do ... create function pg_temp.run_time_bigger(numeric,numeric) returns numeric language plpgsql as $$ begin if $1 > $2 then return $1; else return $2; end if; end;$$; select * f