Re: External search engine, advice

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Hackers List <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: External search engine, advice
Date: 2001-05-20 16:39:56
Message-ID: 11837.990376796@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

mlw <markw(at)mohawksoft(dot)com> writes:
>> Hmm ... given that ftss refers to external files, is it a good idea to
>> mark it cachable?

> This I don't understand. What is the lifetime of a value that "iscacheable?"

Forever. cachable says it's OK to reduce "func(constant)" to "constant"
on sight. Right now it's not really forever because we don't save query
plans for very long (unless they're inside a plpgsql function) ... but
if you have a function that depends on any outside data besides its
arguments, you'd be ill-advised to mark it cachable.

regards, tom lane

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Matthew Kirkwood 2001-05-20 17:09:42 Re: Functions returning sets
Previous Message Don Baccus 2001-05-20 16:27:30 Re: Functions returning sets