pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Josh Berkus <josh@agliodbs.com>
To: Rudi Starcevic <rudi@oasis.net.au>
To: pgsql-sql@postgresql.org
Subject: Re: skip weekends
Date: Fri, 21 Jun 2002 12:37:27 -0700
Message-ID: <web-1552113@davinci.ethosmedia.com> (raw)
In-Reply-To: <3D12C2C0.2040904@oasis.net.au>

Rudi,

> Nice reply Josh.
> I wouldn't call your solution 'ugly' at all.

Actually I posed te question, and Joe Conway offered the solution.
 I'll be testing and reporting back.

> It's an excellent example of a real world need for Postgresql
> functions.
> I've also been looking at other functions at
> http://www.brasileiro.net/postgres/cookbook/.
> I noticed your name amongst the author's -- nice one -- keep up the
> good work.

Yes.  Sadly, Roberto seems to have lost interest in PostgreSQL, so the
cookbook is frozen.  <frown>  For example, There's a couple of bugs in
name_alike I'd like to fix, but I can't correct them and Roberto
doesn't answer his e-mail.   Anybody wanna take over the Cookbook?

> My only problem is trying to decide on whether to use PL/pgSQL or
> PLPerl.

Use them both.  PL/Perl is better at text parsing, loops and arrays.
 PL/pgSQL is faster for data operations.  Use the best tool for the
job!

One thing I'd love to see is a generic address tokenizer, so that I can
write an "address_alike" function.   My Perl isn't up to it.

Heck, a generic string tokenizer would be even more useful.  Can a
PL/Perl function return an array?

-Josh





view thread (3+ messages)

Message-ID: <web-1552113@davinci.ethosmedia.com>
Permalink:  ../web-1552113@davinci.ethosmedia.com/
Also on:    postgresql.org/message-id/web-1552113@davinci.ethosmedia.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-sql@postgresql.org
  Cc: josh@agliodbs.com, rudi@oasis.net.au
  Subject: Re: skip weekends
  In-Reply-To: <web-1552113@davinci.ethosmedia.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox