Received: from maia.hub.org (maia-2.hub.org [200.46.204.251]) by mail.postgresql.org (Postfix) with ESMTP id E7CD5822970 for ; Thu, 10 Nov 2011 20:27:08 -0400 (AST) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.251]) (amavisd-maia, port 10024) with ESMTP id 33655-01-6 for ; Fri, 11 Nov 2011 00:27:02 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.8.0-rc2 Received: from mail-vw0-f46.google.com (mail-vw0-f46.google.com [209.85.212.46]) by mail.postgresql.org (Postfix) with ESMTP id D8A465144AD for ; Thu, 10 Nov 2011 20:23:28 -0400 (AST) Received: by vws1 with SMTP id 1so2966768vws.19 for ; Thu, 10 Nov 2011 16:23:28 -0800 (PST) Received: by 10.52.187.68 with SMTP id fq4mr16859462vdc.32.1320971008825; Thu, 10 Nov 2011 16:23:28 -0800 (PST) Received: from ayaki.localdomain (203-59-33-175.dyn.iinet.net.au. [203.59.33.175]) by mx.google.com with ESMTPS id z6sm4380324vdg.18.2011.11.10.16.23.25 (version=SSLv3 cipher=OTHER); Thu, 10 Nov 2011 16:23:26 -0800 (PST) Message-ID: <4EBC6AFA.5000301@ringerc.id.au> Date: Fri, 11 Nov 2011 08:23:22 +0800 From: Craig Ringer User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:7.0.1) Gecko/20110930 Thunderbird/7.0.1 MIME-Version: 1.0 To: MOHSEN MOMENI CC: Pg Bugs Subject: Re: HElp References: In-Reply-To: Content-Type: multipart/alternative; boundary="------------010705080400020606090609" X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-1.899 tagged_above=-5 required=5 tests=BAYES_00=-1.9, HTML_MESSAGE=0.001 X-Spam-Level: X-Archive-Number: 201111/82 X-Sequence-Number: 31677 This is a multi-part message in MIME format. --------------010705080400020606090609 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Messages with the subject "Help" usually don't get much response. Also, this is not a bug report. If you have questions or need help, try the pgsql-general or pgsql-novice mailing lists (as the bug report form advised you to do) or ask on the EnterpriseDB forums. Please do not reply to this message. If you want more help, use one of the places mentioned above. When you ask for more help in an appropriate place, rather than just saying "it doesn't work" please copy and paste the ERROR MESSAGES you get when you run it. See: http://wiki.postgresql.org/wiki/Guide_to_reporting_problems PostgreSQL 8.1 is obsolete and unmaintained. You should update. "CREATE IF NOT EXISTS AGGREGATE" is invalid and does not exist, so you cannot use it. See the help: --------------------------------- db=> \h create aggregate Command: CREATE AGGREGATE Description: define a new aggregate function Syntax: CREATE AGGREGATE name ( input_data_type [ , ... ] ) ( SFUNC = sfunc, STYPE = state_data_type [ , FINALFUNC = ffunc ] [ , INITCOND = initial_condition ] [ , SORTOP = sort_operator ] ) or the old syntax CREATE AGGREGATE name ( BASETYPE = base_type, SFUNC = sfunc, STYPE = state_data_type [ , FINALFUNC = ffunc ] [ , INITCOND = initial_condition ] [ , SORTOP = sort_operator ] ) --------------------------------- -- Craig Ringer --------------010705080400020606090609 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 8bit Messages with the subject "Help" usually don't get much response. Also, this is not a bug report. If you have questions or need help, try the pgsql-general or pgsql-novice mailing lists (as the bug report form advised you to do) or ask on the EnterpriseDB forums.

Please do not reply to this message. If you want more help, use one of the places mentioned above.

When you ask for more help in an appropriate place, rather than just saying "it doesn't work" please copy and paste the ERROR MESSAGES you get when you run it. See:

  http://wiki.postgresql.org/wiki/Guide_to_reporting_problems

PostgreSQL 8.1 is obsolete and unmaintained. You should update.

"CREATE IF NOT EXISTS AGGREGATE" is invalid and does not exist, so you cannot use it. See the help:

---------------------------------
db=> \h create aggregate
Command:     CREATE AGGREGATE
Description: define a new aggregate function
Syntax:
CREATE AGGREGATE name ( input_data_type [ , ... ] ) (
    SFUNC = sfunc,
    STYPE = state_data_type
    [ , FINALFUNC = ffunc ]
    [ , INITCOND = initial_condition ]
    [ , SORTOP = sort_operator ]
)

or the old syntax

CREATE AGGREGATE name (
    BASETYPE = base_type,
    SFUNC = sfunc,
    STYPE = state_data_type
    [ , FINALFUNC = ffunc ]
    [ , INITCOND = initial_condition ]
    [ , SORTOP = sort_operator ]
)
---------------------------------

--
Craig Ringer
--------------010705080400020606090609--