8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent aa79bde commit 0afa288Copy full SHA for 0afa288
src/backend/libpq/be-fsstubs.c
@@ -859,18 +859,6 @@ be_lo_put(PG_FUNCTION_ARGS)
859
860
lo_cleanup_needed = true;
861
loDesc = inv_open(loOid, INV_WRITE, CurrentMemoryContext);
862
-
863
- /* Permission check */
864
- if (!lo_compat_privileges &&
865
- pg_largeobject_aclcheck_snapshot(loDesc->id,
866
- GetUserId(),
867
- ACL_UPDATE,
868
- loDesc->snapshot) != ACLCHECK_OK)
869
- ereport(ERROR,
870
- (errcode(ERRCODE_INSUFFICIENT_PRIVILEGE),
871
- errmsg("permission denied for large object %u",
872
- loDesc->id)));
873
874
inv_seek(loDesc, offset, SEEK_SET);
875
written = inv_write(loDesc, VARDATA_ANY(str), VARSIZE_ANY_EXHDR(str));
876
Assert(written == VARSIZE_ANY_EXHDR(str));
0 commit comments