forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commite46e986
committed
Postpone calls of unsafe server-side functions in pg_dump.
Avoid calling pg_get_partkeydef(), pg_get_expr(relpartbound),and regtypeout until we have lock on the relevant tables.The existing coding is at serious risk of failure if thereare any concurrent DROP TABLE commands going on --- includingdrops of other sessions' temp tables.Back-patch of commite3fcbbd. That's been in v15/HEAD long enoughto have some confidence about it, so now let's fix the problem inolder branches.Original patch by me; thanks to Gilles Darold for back-patchinglegwork.Discussion:https://postgr.es/m/2273648.1634764485@sss.pgh.pa.usDiscussion:https://postgr.es/m/7d7eb6128f40401d81b3b7a898b6b4de@W2012-02.nidsa.locDiscussion:https://postgr.es/m/45c93d57-9973-248e-d2df-e02ca9af48d4@darold.net1 parent9a299cf commite46e986