Re: Proposal: syntax of operation with tsearch'sconfiguration - Mailing list pgsql-hackers

From Simon Riggs
Subject Re: Proposal: syntax of operation with tsearch'sconfiguration
Date
Msg-id 1163846133.27956.767.camel@silverbirch.site
Whole thread Raw
In response to Re: Proposal: syntax of operation with tsearch's configuration  (Martijn van Oosterhout <kleptog@svana.org>)
Responses Re: Proposal: syntax of operation with tsearch'sconfiguration  (Oleg Bartunov <oleg@sai.msu.su>)
List pgsql-hackers
On Sat, 2006-11-18 at 00:13 +0100, Martijn van Oosterhout wrote:
> On Fri, Nov 17, 2006 at 03:53:35PM -0500, Tom Lane wrote:
> > > Having the supporting code in core does not make much of a difference
> > > otherwise from having it in contrib, does it?
> > 
> > Given the nonextensibility of gram.y and keywords.c, it has to be in
> > core to even think about having special syntax :-(
> 
> Has anyone ever heard of extensible grammers? 

(not specifically answering Martijn...)

The main thought for me on this thread is: Why do we need to invent
*any* grammar to make this work? Why not just use functions?

For PITR we have pg_start_backup() rather than BACKUP START. For
advisory locks we have pg_advisory_lock()

What's wrong with having pg_tsearch_ functions to do everything? There's
nothing wrong with additional catalog tables/columns that are
manipulated by function calls only. We have that already - look at
pg_stat_reset() - no grammar stuff there.

Anybody with an Oracle or SQLServer background is used to seeing system
functions available as function calls; as I've observed above, so are
we. We should keep the grammar clean to allow a very close adherence to
SQL standards, IMHO.

I would like to see Oleg and Teodor's good work come into core, but I
don't want to see bucketfuls of new grammar issues.

--  Simon Riggs              EnterpriseDB   http://www.enterprisedb.com




pgsql-hackers by date:

Previous
From: Peter Eisentraut
Date:
Subject: Re: [GENERAL] Allowing SYSDATE to Work
Next
From: Oleg Bartunov
Date:
Subject: Re: Proposal: syntax of operation with tsearch'sconfiguration