Received: from mailbox4.ucsd.edu (mailbox4.ucsd.edu [132.239.1.56]) by postgresql.org (8.11.3/8.11.4) with ESMTP id fBH6JOm62320 for ; Mon, 17 Dec 2001 01:19:24 -0500 (EST) (envelope-from ghoffman@ucsd.edu) Received: from smtp.ucsd.edu (smtp.ucsd.edu [132.239.1.49]) by mailbox4.ucsd.edu (8.12.1/8.12.1) with ESMTP id fBH6JNeK020997 for ; Sun, 16 Dec 2001 22:19:23 -0800 (PST) Received: from irpsmail.ucsd.edu (irpsmail.ucsd.edu [132.239.21.3]) by smtp.ucsd.edu (8.9.3/8.9.3) with ESMTP id WAA12038 for ; Sun, 16 Dec 2001 22:19:23 -0800 (PST) Message-id: Date: Sun, 16 Dec 2001 22:23:32 -0800 Subject: Determing Postgres version To: pgsql-php@postgresql.org From: "Gary Hoffman" MIME-Version: 1.0 Content-type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Archive-Number: 200112/16 X-Sequence-Number: 791 For an off-campus project, my web hosting ISP has the PostgreSQL postmaster running on a host separate from where my web pages are hosted. My queries work OK, but I can't get LIMIT to work. I suspect he hasn't upgraded to version 7 yet. How can I query for a version? I can't use pg_config --version because it's not on my local host and anyway it wouldn't find the postmaster on this host. Can I use a SQL query to determine the version of the postmaster? Thanks in advance. Gary ************************************************************************** * Gary B. Hoffman, Computing Services Manager e-mail: ghoffman@ucsd.edu * * Graduate School of International Relations and Pacific Studies (IR/PS) * * University of California, San Diego (UCSD) voice: (858) 534-1989 * * 9500 Gilman Dr. MC 0519 fax: (858) 534-3939 * * La Jolla, CA 92093-0519 USA web: http://www-irps.ucsd.edu/ * **************************************************************************