Re: immutable functions vs. join for lookups ? - Mailing list pgsql-performance

From Merlin Moncure
Subject Re: immutable functions vs. join for lookups ?
Date
Msg-id 6EE64EF3AB31D5448D0007DD34EEB3415C2596@Herge.rcsinc.local
Whole thread Raw
In response to immutable functions vs. join for lookups ?  (Enrico Weigelt <weigelt@metux.de>)
Responses Re: immutable functions vs. join for lookups ?  (Dawid Kuroczko <qnex42@gmail.com>)
Re: immutable functions vs. join for lookups ?  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-performance
> d) self-join with a function ;)
>   EXPLAIN ANALYZE SELECT * FROM (SELECT n, id2username(n) AS username
> FROM (SELECT DISTINCT n FROM aaa) AS values) AS v_lookup RIGHT JOIN
> aaa USING (n);

That's pretty clever.
It sure seems like the server was not caching the results of the
function...maybe the server thought it was to small a table to bother?

Merlin

pgsql-performance by date:

Previous
From: Dawid Kuroczko
Date:
Subject: Re: immutable functions vs. join for lookups ?
Next
From: "Joel Fradkin"
Date:
Subject: FW: speed of querry?