Patch for Postgres (against postfix-19990906-pl05) (fwd)

From: "Marc G(dot) Fournier" <marc(dot)fournier(at)acadiau(dot)ca>
To: pgsql-announce(at)postgresql(dot)org
Cc: jeff(at)pgsql(dot)com
Subject: Patch for Postgres (against postfix-19990906-pl05) (fwd)
Date: 1999-10-07 12:17:37
Message-ID: Pine.BSF.4.10.9910070917240.92624-100000@atelier.acadiau.ca
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-announce

Marc G. Fournier marc(dot)fournier(at)acadiau(dot)ca
Senior Systems Administrator Acadia University

"These are my opinions, which are not necessarily shared by my employer"

---------- Forwarded message ----------
Date: Thu, 07 Oct 1999 22:12:03 +1000
From: Greg Wickham <gjw(at)deakin(dot)edu(dot)au>
To: postfix-testers(at)postfix(dot)org
Subject: Patch for Postgres (against postfix-19990906-pl05)

Hi,

I submit for approval and acceptance the following patch
for postfix-19990906-pl05 to use postgres for map lookups.

Not sure if this is the correct mailing list for this submission.
Hopefully will be ok.

Patch is available from:

http://www.deakin.edu.au/~gjw/postfix/postfix-postgres.patch

Comments appreciated. I based this patch on the mysql patch
which was in pl02. This patch uses a different connection
algorithm in that a connection to a database isn't made until
the first lookup. Also, only a single connnection is ever
maintained. If the connection goes bad then the next database
is tried. If all databases return errors then the query returns
an error.

I have had a minor (understatement?) problem with 'myrealloc'.
And had to code around using this function. Not sure what the
heck is going on because there is only about a dozen or so
lines of code before the problem arose.

I've tested this patch and I've had good success with it.
Although stress testing at high load would be desireable.

cheers,

-Greg

------------------------------------------------------------------
wheNufiNdu'RselFindAngeRwheNu'rThreAtenEdbyAstrAngeRwheNitlOoksLik

Browse pgsql-announce by date

  From Date Subject
Next Message D'Arcy J.M. Cain 1999-10-09 12:32:42 [PyGreSQL] Announce: PyGreSQL 2.4 released
Previous Message Amarjit Rahi 1999-10-06 18:39:01 unsubscribe arahi@glue.umd.edu