Lines Matching refs:loDesc
777 LargeObjectDesc *loDesc; in lo_get_fragment_internal() local
784 loDesc = inv_open(loOid, INV_READ, CurrentMemoryContext); in lo_get_fragment_internal()
788 pg_largeobject_aclcheck_snapshot(loDesc->id, in lo_get_fragment_internal()
791 loDesc->snapshot) != ACLCHECK_OK) in lo_get_fragment_internal()
795 loDesc->id))); in lo_get_fragment_internal()
801 loSize = inv_seek(loDesc, 0, SEEK_END); in lo_get_fragment_internal()
823 inv_seek(loDesc, offset, SEEK_SET); in lo_get_fragment_internal()
824 total_read = inv_read(loDesc, VARDATA(result), result_length); in lo_get_fragment_internal()
828 inv_close(loDesc); in lo_get_fragment_internal()
876 LargeObjectDesc *loDesc; in be_lo_from_bytea() local
881 loDesc = inv_open(loOid, INV_WRITE, CurrentMemoryContext); in be_lo_from_bytea()
882 written = inv_write(loDesc, VARDATA_ANY(str), VARSIZE_ANY_EXHDR(str)); in be_lo_from_bytea()
884 inv_close(loDesc); in be_lo_from_bytea()
898 LargeObjectDesc *loDesc; in be_lo_put() local
902 loDesc = inv_open(loOid, INV_WRITE, CurrentMemoryContext); in be_lo_put()
906 pg_largeobject_aclcheck_snapshot(loDesc->id, in be_lo_put()
909 loDesc->snapshot) != ACLCHECK_OK) in be_lo_put()
913 loDesc->id))); in be_lo_put()
915 inv_seek(loDesc, offset, SEEK_SET); in be_lo_put()
916 written = inv_write(loDesc, VARDATA_ANY(str), VARSIZE_ANY_EXHDR(str)); in be_lo_put()
918 inv_close(loDesc); in be_lo_put()