Received: from maia.hub.org (maia-3.hub.org [200.46.204.243]) by mail.postgresql.org (Postfix) with ESMTP id ED46E1337B83 for ; Thu, 14 Apr 2011 20:23:57 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.243]) (amavisd-maia, port 10024) with ESMTP id 26863-01 for ; Thu, 14 Apr 2011 23:23:50 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from qmta02.westchester.pa.mail.comcast.net (qmta02.westchester.pa.mail.comcast.net [76.96.62.24]) by mail.postgresql.org (Postfix) with ESMTP id 194BB1337B9C for ; Thu, 14 Apr 2011 20:23:49 -0300 (ADT) Received: from omta23.westchester.pa.mail.comcast.net ([76.96.62.74]) by qmta02.westchester.pa.mail.comcast.net with comcast id XbN01g0061c6gX852bProC; Thu, 14 Apr 2011 23:23:51 +0000 Received: from homie ([68.45.149.86]) by omta23.westchester.pa.mail.comcast.net with comcast id XbPq1g00c1s54jo3jbPqsM; Thu, 14 Apr 2011 23:23:50 +0000 Received: by homie (Postfix, from userid 1000) id 5CCF220C52; Thu, 14 Apr 2011 19:23:49 -0400 (EDT) From: Jerry Sievers To: Sam Nelson Cc: pgsql-admin@postgresql.org Subject: Re: Version String References: Date: Thu, 14 Apr 2011 19:23:49 -0400 In-Reply-To: (Sam Nelson's message of "Thu, 14 Apr 2011 15:21:42 -0600") Message-ID: <87y63cs9h6.fsf@comcast.net> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-0.355 tagged_above=-10 required=5 tests=BAYES_00=-1.9, FREEMAIL_ENVFROM_END_DIGIT=1.553, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, RFC_ABUSE_POST=0.001, T_RP_MATCHES_RCVD=-0.01 X-Spam-Level: X-Archive-Number: 201104/144 X-Sequence-Number: 37325 Sam Nelson writes: > Hi, list > > We're attempting to change the version string for a Postgres Plus > instance to sort of trick a standard Postgres ODBC driver into > connecting to the pgplus instance.  I know there is a postgres > plus ODBC driver out there, but, while I don't know the specifics of > why, it's currently not being used, and I believe there's a good > reason for that (although we have asked and are waiting for a > response). > > So, is this doable?  Is there a way to change the version string that postgres reports back to us? alter function pg_catalog.version() rename to version_old; create function pg_catalog.version() returns text as $$select 'fake version goes here'::text$$ language sql;; I am not making any claim as to this being a good practice :-) Try it though on your dev system and see what happens. > ---  > =========================== > Samuel Nelson > Consistent State > www.consistentstate.com > 303-955-0509 > =========================== > -- Jerry Sievers Postgres DBA/Development Consulting e: gsievers19@comcast.net p: 305.321.1144