From: | Robert Treat <xzilla(at)users(dot)sourceforge(dot)net> |
---|---|
To: | pgsql-hackers(at)postgresql(dot)org |
Cc: | Oleg Bartunov <oleg(at)sai(dot)msu(dot)su>, Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, Gregory Stark <stark(at)enterprisedb(dot)com>, Teodor Sigaev <teodor(at)sigaev(dot)ru> |
Subject: | Re: tsearch_core patch: permissions and security issues |
Date: | 2007-06-15 11:42:06 |
Message-ID: | 200706150742.06809.xzilla@users.sourceforge.net |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-advocacy pgsql-hackers |
On Friday 15 June 2007 00:46, Oleg Bartunov wrote:
> On Thu, 14 Jun 2007, Tom Lane wrote:
> > [ thinks some more... ] If we revived the GENERATED AS patch,
> > you could imagine computing tsvector columns via "GENERATED AS
> > to_tsvector('english'::regconfig, big_text_col)" instead of a
> > trigger, and then again you've got the dependency exposed where
> > the system can see it. I don't wanna try to do that for 8.3,
> > but it might be a good path to pursue in future, instead of assuming
> > that triggers will be the way forevermore.
> >
> > Thoughts?
>
> No way with standard. GENERATED AS says that "all columns references in an
> expression associated with a generated column must be to columns of the
> base table containing that generated column."
>
> tsvector could be result of rather complex select involving several tables.
>
Is there some reason for this restriction in the standard? I might be in
favor of "extending" the standard to allow this case if not.
--
Robert Treat
Build A Brighter LAMP :: Linux Apache {middleware} PostgreSQL
From | Date | Subject | |
---|---|---|---|
Next Message | Bruce Momjian | 2007-06-15 14:15:31 | Re: How does the tsearch configuration get selected? |
Previous Message | Teodor Sigaev | 2007-06-15 10:32:16 | Re: How does the tsearch configuration get selected? |
From | Date | Subject | |
---|---|---|---|
Next Message | Gregory Stark | 2007-06-15 12:26:26 | Re: Load Distributed Checkpoints test results |
Previous Message | Michael Paesold | 2007-06-15 11:11:57 | Re: [PATCHES] Load Distributed Checkpoints, revised patch |