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...
IF (bytes != LENGTH($1)) THEN RAISE EXCEPTION 'Not all data copied to blob'; END IF; PERFORM lo_close(fd);
-- Jim C. Nasby, Data Architect jim@nasby.net512.569.9461 (cell) http://jim.nasby.net
pgsql-hackers by date:
Соглашаюсь с условиями обработки персональных данных