pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: manchicken <manchicken@notsosoft.net>
To: pgsql-sql@postgresql.org
Subject: Re: tsearch2() trigger and domain types...
Date: Tue, 19 Jun 2007 08:55:46 -0500
Message-ID: <200706190855.47398.manchicken@notsosoft.net> (raw)
In-Reply-To: <10334.1182207590@sss.pgh.pa.us>
References: <200706181610.00270.manchicken@notsosoft.net>
	<10334.1182207590@sss.pgh.pa.us>

On Monday 18 June 2007 17:59:50 Tom Lane wrote:
> "Michael D. Stemle, Jr." <manchicken@notsosoft.net> writes:
> > For standardization in my database I use a domain (login_t) for my login
> > column in my profile table.
> >
> > Well, here's what I get upon every update and insert to the profile
> > table: WARNING:  TSearch: 'login' is not of character type
>
> The tsearch trigger seems to insist that the column be text, varchar(n),
> or char(n) ... no domains need apply :-(
>
> I'm not real sure why it doesn't just invoke the column's output
> function and be datatype-agnostic.  Or at least do that when the
> shortcut "I know what text looks like" path isn't applicable.

Is there any way to cast these column datatypes in the trigger to fool it, or 
is the only way to fix this to reconstruct the table without domains?  I'd 
really prefer not to abandon domains if at all possible.

-- 
~ manchicken <><
(A)bort, (R)etry, (I)nfluence with large hammer.
09 F9 11 02 9D 74 E3 5B D8 41 56 C5 63 56 88 C0


Please avoid sending me Word or PowerPoint attachments.
See http://www.gnu.org/philosophy/no-word-attachments.html



view thread (5+ messages)  latest in thread

Message-ID: <200706190855.47398.manchicken@notsosoft.net>
Permalink:  ../200706190855.47398.manchicken@notsosoft.net/
Also on:    postgresql.org/message-id/200706190855.47398.manchicken@notsosoft.net

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-sql@postgresql.org
  Cc: manchicken@notsosoft.net
  Subject: Re: tsearch2() trigger and domain types...
  In-Reply-To: <200706190855.47398.manchicken@notsosoft.net>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox