Thread: hashing improvements

hashing improvements

From
Neil Conway
Date:
Hi,

I've attached a simple patch which should improve the performance of
hashname() and reduce the penalty incured when NAMEDATALEN is increased.
I posted this to -hackers a couple days ago, and there haven't been any
major complaints. It passes the regression tests. See -hackers for more
discussion, as well as the suggestion from Tom Lane on which this patch
is based.

Unless anyone sees any problems, please apply for 7.3.

Cheers,

Neil

--
Neil Conway <neilconway@rogers.com>
PGP Key ID: DB3C29FC

Attachment

Re: hashing improvements

From
Bruce Momjian
Date:
This has been saved for the 7.3 release:

    http://candle.pha.pa.us/cgi-bin/pgpatches2

---------------------------------------------------------------------------

Neil Conway wrote:
> Hi,
>
> I've attached a simple patch which should improve the performance of
> hashname() and reduce the penalty incured when NAMEDATALEN is increased.
> I posted this to -hackers a couple days ago, and there haven't been any
> major complaints. It passes the regression tests. See -hackers for more
> discussion, as well as the suggestion from Tom Lane on which this patch
> is based.
>
> Unless anyone sees any problems, please apply for 7.3.
>
> Cheers,
>
> Neil
>
> --
> Neil Conway <neilconway@rogers.com>
> PGP Key ID: DB3C29FC

[ Attachment, skipping... ]

>
> ---------------------------(end of broadcast)---------------------------
> TIP 4: Don't 'kill -9' the postmaster

--
  Bruce Momjian                        |  http://candle.pha.pa.us
  pgman@candle.pha.pa.us               |  (610) 853-3000
  +  If your life is a hard drive,     |  830 Blythe Avenue
  +  Christ can be your backup.        |  Drexel Hill, Pennsylvania 19026

Re: hashing improvements

From
Bruce Momjian
Date:
Your patch has been added to the PostgreSQL unapplied patches list at:

    http://candle.pha.pa.us/cgi-bin/pgpatches

I will try to apply it within the next 48 hours.

---------------------------------------------------------------------------


Neil Conway wrote:
> Hi,
>
> I've attached a simple patch which should improve the performance of
> hashname() and reduce the penalty incured when NAMEDATALEN is increased.
> I posted this to -hackers a couple days ago, and there haven't been any
> major complaints. It passes the regression tests. See -hackers for more
> discussion, as well as the suggestion from Tom Lane on which this patch
> is based.
>
> Unless anyone sees any problems, please apply for 7.3.
>
> Cheers,
>
> Neil
>
> --
> Neil Conway <neilconway@rogers.com>
> PGP Key ID: DB3C29FC

[ Attachment, skipping... ]

>
> ---------------------------(end of broadcast)---------------------------
> TIP 4: Don't 'kill -9' the postmaster

--
  Bruce Momjian                        |  http://candle.pha.pa.us
  pgman@candle.pha.pa.us               |  (610) 853-3000
  +  If your life is a hard drive,     |  830 Blythe Avenue
  +  Christ can be your backup.        |  Drexel Hill, Pennsylvania 19026

Re: hashing improvements

From
Bruce Momjian
Date:
Patch applied.  Thanks.

---------------------------------------------------------------------------


Neil Conway wrote:
> Hi,
>
> I've attached a simple patch which should improve the performance of
> hashname() and reduce the penalty incured when NAMEDATALEN is increased.
> I posted this to -hackers a couple days ago, and there haven't been any
> major complaints. It passes the regression tests. See -hackers for more
> discussion, as well as the suggestion from Tom Lane on which this patch
> is based.
>
> Unless anyone sees any problems, please apply for 7.3.
>
> Cheers,
>
> Neil
>
> --
> Neil Conway <neilconway@rogers.com>
> PGP Key ID: DB3C29FC

[ Attachment, skipping... ]

>
> ---------------------------(end of broadcast)---------------------------
> TIP 4: Don't 'kill -9' the postmaster

--
  Bruce Momjian                        |  http://candle.pha.pa.us
  pgman@candle.pha.pa.us               |  (610) 853-3000
  +  If your life is a hard drive,     |  830 Blythe Avenue
  +  Christ can be your backup.        |  Drexel Hill, Pennsylvania 19026