Do something like this to get it without being behind other
transactions...You either get in and get your work done or try again
DO language plpgsql $$
BEGIN
FOR get_lock IN 1 .. 100 LOOP
BEGIN
ALTER TABLE mytable ;
EXIT;
END;
END LOOP;
END;
$$;
Tom Lane wrote on 1/19/2023 12:45 P
aditya desai writes:
> We have a Postgres 11.16 DB which is continuously connected to informatica
> and data gets read from it continuously.
> When we have to ALTER TABLE.. ADD COLUMN.. it gets blocked by the SELECTs
> on the table mentioned by process above.
> Is there any way to ALTER the tabl
Hi,
We have a Postgres 11.16 DB which is continuously connected to informatica
and data gets read from it continuously.
When we have to ALTER TABLE.. ADD COLUMN.. it gets blocked by the SELECTs
on the table mentioned by process above.
Is there any way to ALTER the table concurrently without gett