설문조사
PostgreSQL/PPAS 관련 듣고 싶은 교육은


총 게시물 94건, 최근 0 건
   

개인적으로 별로 호감가지 않는 PostgreSQL 의 PL/pgSQL 의 특징

글쓴이 : PostgresDBA 날짜 : 2015-01-06 (화) 23:34 조회 : 7799
오라클과 달리 PL/pgSQL 함수/프로시져 내부에서는 commit 이나 rollback 명령어를 사용하지 못합니다--;
즉, PL/pgSQL 외부에서만 트랜잭션 처리(commit or rollback) 를 할수 있습니다.

workaround 가 아예 없는것은 아니나 코드가 너저분해집니다.
바람직하지 않아서 소개는 하지 않습니다.

PGAdmin 2015-02-12 (목) 00:34
PPAS 9.4 부터 stored procedure 내에서 commit/rollback 의 사용이 가능합니다.

PPAS 9.4 data sheet를 참고하세요.
http://www.enterprisedb.com/ds-advanced-server
==> Explicit Transaction Control: For Commits/Rollbacks inside stored procedures
댓글주소
   

postgresdba.com