# SPL Module Reference: sql_postgres

load "sql_postgres";

    This module implements the POSTGRES database driver.

    Load this module (and the "sql" module) and pass "postgres" as backend
    driver name to sql_connect();

    The string describing the database connection (the 2nd argument to
    sql_connect()) is used as it is as PQconnectdb conninfo string.
    A detailed description of the format of this string can be found at:

    	http://www.postgresql.org/docs/8.0/interactive/libpq.html#AEN22513

    Example given:

    	var db = sql_connect("postgres", "host=dbserver user=postgres dbname=template1");

    	foreach[] tuple (sql(db, "show all"))
    		debug "${shift tuple} = ${shift tuple}";

Generated by SPLDOC. | http://www.clifford.at/spl/