File tree Expand file tree Collapse file tree 2 files changed +0
-14
lines changed Expand file tree Collapse file tree 2 files changed +0
-14
lines changed Original file line number Diff line number Diff line change @@ -407,8 +407,6 @@ $$ LANGUAGE plpgsql;
407
407
CREATE FUNCTION readonly_table_on (relation regclass)
408
408
RETURNS void AS $$
409
409
BEGIN
410
- -- Grab exclusive lock on table to finish existing transactions
411
- PERFORM shardman .ae_lock_table (relation);
412
410
-- Create go away trigger to prevent any new ones
413
411
PERFORM shardman .readonly_table_off (relation);
414
412
EXECUTE format(
Original file line number Diff line number Diff line change @@ -269,15 +269,3 @@ pq_conninfo_parse(PG_FUNCTION_ARGS)
269
269
PQconninfoFree (opts );
270
270
PG_RETURN_DATUM (HeapTupleGetDatum (heap_form_tuple (tupdesc , values , nulls )));
271
271
}
272
-
273
- /*
274
- * Obtain AccessExclusiveLock on table
275
- */
276
- PG_FUNCTION_INFO_V1 (ae_lock_table );
277
- Datum
278
- ae_lock_table (PG_FUNCTION_ARGS )
279
- {
280
- Oid relid = PG_GETARG_OID (0 );
281
- LockRelationOid (relid , AccessExclusiveLock );
282
- PG_RETURN_VOID ();
283
- }
You can’t perform that action at this time.
0 commit comments