PostgreSQL is an advanced object-relational database management system
that supports an extended subset of the SQL standard, including
transactions, foreign keys, subqueries, triggers, user-defined types
-and functions. This distribution also contains several language
-bindings, including C and Tcl.
+and functions. This distribution also contains C language bindings.
-The JDBC, ODBC, C++, and Python interfaces have been moved to the PostgreSQL
-Projects Web Site at http://gborg.postgresql.org for separate maintenance.
-A Perl DBI/DBD driver is available from CPAN.
+The JDBC, ODBC, C++, Python, and Tcl interfaces have been moved to the
+PostgreSQL Projects Web Site at http://gborg.postgresql.org for separate
+maintenance. A Perl DBI/DBD driver is available from CPAN.
See the file INSTALL for instructions on how to build and install
PostgreSQL. That file also lists supported operating systems and
--with-libraries=DIRS look for additional libraries in DIRS
--with-libs=DIRS alternative spelling of --with-libraries
--with-pgport=PORTNUM change default port number 5432
- --with-tcl build Tcl and Tk interfaces
+ --with-tcl build Tcl modules (PL/Tcl)
--with-tclconfig=DIR tclConfig.sh is in DIR
--with-perl build Perl modules (PL/Perl)
--with-python build Python modules (PL/Python)
#
-# Tcl/Tk
+# Optionally build Tcl modules (PL/Tcl)
#
echo "$as_me:$LINENO: checking whether to build with Tcl" >&5
echo $ECHO_N "checking whether to build with Tcl... $ECHO_C" >&6
dnl Process this file with autoconf to produce a configure script.
-dnl $PostgreSQL: pgsql/configure.in,v 1.378 2004/09/27 02:17:14 pgsql Exp $
+dnl $PostgreSQL: pgsql/configure.in,v 1.379 2004/10/01 02:00:41 neilc Exp $
dnl
dnl Developers, please strive to achieve this order:
dnl
AC_SUBST(enable_thread_safety)
#
-# Tcl/Tk
+# Optionally build Tcl modules (PL/Tcl)
#
AC_MSG_CHECKING([whether to build with Tcl])
-PGAC_ARG_BOOL(with, tcl, no, [ --with-tcl build Tcl and Tk interfaces])
+PGAC_ARG_BOOL(with, tcl, no, [ --with-tcl build Tcl modules (PL/Tcl)])
AC_MSG_RESULT([$with_tcl])
AC_SUBST([with_tcl])
-
+
PostgreSQL>]]>
- To build the server programming language PL/Perl you need a full
+ To build the server programming language
+
PL/Perl you need a full
Perl installation, including the
libperl library and the header files.
- Since PL/Perl will be a shared library, the
+ Since
PL/Perl will be a shared
libperl library must be a shared library
also on most platforms. This appears to be the default in
recent
Perl versions, but it was not
*** the documentation for details.
(If you don't follow the on-screen output you will merely notice
- that the PL/Perl library object, plperl.so
- or similar, will not be installed.) If you see this, you will
- have to rebuild and install
Perl
- manually to be able to build PL/Perl. During the configuration
- process for
Perl, request a shared
- library.
+ that the
PL/Perl library object,
+ plperl.so or similar, will not be
+ installed.) If you see this, you will have to rebuild and
+ install
Perl manually to be able to
+ build
PL/Perl. During the
+ configuration process for
Perl,
+ request a shared library.
- To build the PL/Python server programming language, you need a
-
Python installation with the header
- files and the distutils module. The distutils module is
- included by default with
Python 1.6
- and later; users of earlier versions of
-
Python will need to install it.
+ To build the
PL/Python> server programming
+ language, you need a
Python
+ installation with the header files and the distutils module.
+ The distutils module is included by default with
+
Python 1.6 and later; users of
+ earlier versions of
Python will need
+ to install it.
- Since PL/Python will be a shared library, the
+ Since
PL/Python will be a shared
libpython library must be a shared library
also on most platforms. This is not the case in a default
Python installation. If after
- If you want to build Tcl or Tk components (clients and the
- PL/Tcl language) you of course need a Tcl installation.
+ If you want to build
the PL/Tcl
+ procedural language, you of course need a Tcl installation.
- Build the PL/Perl server-side language.
+ Build the
PL/Perl> server-side language.
- Build the PL/Python server-side language.
+ Build the
PL/Python> server-side language.
- Build
PL/Tcl>, which requires Tcl/Tk
-
-
-
-
-
-
-
-
- If you specify
- the program that requires
Tk>
- excluded.
+ Build the
PL/Tcl> server-side language.
-
- Tcl/Tk installs the files tclConfig.sh and
- tkConfig.sh, which contain
- configuration information needed to build modules
- interfacing to Tcl or Tk. These files are normally found
- automatically at their well-known locations, but if you want to
- use a different version of Tcl or Tk you can specify the
- directory in which to find them.
+ Tcl installs the file tclConfig.sh, which
+ contains configuration information needed to build modules
+ interfacing to Tcl. This file is normally found automatically
+ at a well-known location, but if you want to use a different
+ version of Tcl you can specify the directory in which to look
+ for it.
- Increment an integer, making use of an argument name, in PL/PgSQL:
+ Increment an integer, making use of an argument name, in
CREATE OR REPLACE FUNCTION increment(i integer) RETURNS integer AS '
+++ /dev/null
-
-
-
-
- pgtclsh
- 1
- Application
-
-
-
- pgtclsh
-
-
PostgreSQL Tcl shell client
-
-
-
-
-
-
-
-
- pgtclsh
-
-
-
-
-
- Description
-
-
- shell interface extended with
-
PostgreSQL database access functions.
- (Essentially, it is tclsh with
- libpgtcl loaded.) Like with the regular
-
Tcl shell, the first command line
- argument is a script file, any remaining arguments are passed to
- the script. If no script file is named, the shell is
- interactive.
-
-
-
PostgreSQL functions is available as
- linkend="app-pgtksh">.
-
-
-
-
-
See Also
-
-
-
-
- (description of libpgtcl)
-
-
- tclsh 1
-
-
-
-
-
-
-
- Allow PL/PgSQL parameter names to be referenced in the function (Dennis Bjorklund)
+ Allow PL/pgSQL parameter names to be referenced in the function (Dennis Bjorklund)
This basically creates an automatic alias for each named parameter.
- Do minimal syntax checking of PL/PgSQL functions at creation time (Tom)
+ Do minimal syntax checking of PL/pgSQL functions at creation time (Tom)
This allows us to catch simple syntax errors sooner.
- More support for composite types (row and record variables) in PL/PgSQL
+ More support for composite types (row and record variables) in PL/pgSQL
For example, it now works to pass a rowtype variable to another function
- Default values for PL/PgSQL variables can now reference previously
+ Default values for PL/pgSQL variables can now reference previously
declared variables
- Improve parsing of PL/PgSQL FOR loops (Tom)
+ Improve parsing of PL/pgSQL FOR loops (Tom)
Parsing is now driven by presence of ".." rather than datatype of FOR