On 8/12/13 1:08 PM, Pavel Stehule wrote:
IF (bytes != LENGTH($1)) THEN
RAISE EXCEPTION 'Not all data copied to blob';
END IF;
PERFORM lo_close(fd);
FWIW, it's probably better to close before raising the exception...
--
Jim C. Nasby, Data Architect jim@nasby.net
512.569.9461 (cell) http://jim.nasby.net

Search Discussions

Discussion Posts

Previous

Follow ups

Related Discussions

Discussion Navigation
viewthread | post
posts ‹ prev | 5 of 9 | next ›
Discussion Overview
grouppgsql-hackers @
categoriespostgresql
postedAug 10, '13 at 6:39a
activeAug 25, '13 at 3:12p
posts9
users4
websitepostgresql.org...
irc#postgresql

People

Translate

site design / logo © 2021 Grokbase