Chapter 4. pgtcl - TCL Binding Library

Introduction

pgtcl is a Tcl package for client programs to interface with Red Hat Database servers. It makes most of the functionality of libpq available to Tcl scripts.

The pg_lo* routines are interfaces to the Large Object features of Red Hat Database. The functions are designed to mimic the analogous file-system functions in the standard Unix file system interface. The pg_lo* routines should be used within a BEGIN/COMMIT transaction block because the file descriptor returned by pg_lo_open is valid only for the current transaction. pg_lo_import and pg_lo_export must be used in a BEGIN/COMMIT transaction block.