Re: Checking is TSearch2 query is valid

From: Bruce Momjian <bruce(at)momjian(dot)us>
To: Alvaro Herrera <alvherre(at)commandprompt(dot)com>
Cc: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, Benjamin Arai <me(at)benjaminarai(dot)com>, PostgreSQL <pgsql-general(at)postgresql(dot)org>
Subject: Re: Checking is TSearch2 query is valid
Date: 2008-03-12 20:50:29
Message-ID: 200803122050.m2CKoTV23654@momjian.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general


Add psql TODO:

o Include the symbolic SQLSTATE name in verbose error reports

http://archives.postgresql.org/pgsql-general/2007-09/msg00438.php

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

Alvaro Herrera wrote:
> Tom Lane wrote:
> > Benjamin Arai <me(at)benjaminarai(dot)com> writes:
> > > Is there a specific exception code for:
> > > ERROR: no operand in tsearch query: "("
> >
> > regression=# \set VERBOSITY verbose
> > regression=# select to_tsquery('(');
> > ERROR: 42601: no operand in tsearch query: "("
> > LOCATION: gettoken_query, tsquery.c:163
> >
> > Seems to be "SYNTAX_ERROR".
>
> Hmm, maybe we should be displaying the textual name of the SQLSTATE
> somehow.
>
> --
> Alvaro Herrera http://www.amazon.com/gp/registry/5ZYLFMCVHXC
> "El d?a que dejes de cambiar dejar?s de vivir"
>
> ---------------------------(end of broadcast)---------------------------
> TIP 5: don't forget to increase your free space map settings

--
Bruce Momjian <bruce(at)momjian(dot)us> http://momjian.us
EnterpriseDB http://postgres.enterprisedb.com

+ If your life is a hard drive, Christ can be your backup. +

In response to

Browse pgsql-general by date

  From Date Subject
Next Message hubert depesz lubaczewski 2008-03-12 21:02:29 Re: Functional Index Question
Previous Message Dave Page 2008-03-12 20:24:08 Re: PostgreSQL user documentation wiki open for business