From: Peter Eisentraut <peter_e@gmx.net>
To: pgsql-bugs@postgresql.org
Subject: domain over enum problem
Date: Tue, 11 Jan 2011 19:37:02 +0200
Message-ID: <1294767422.17361.3.camel@vanquo.pezone.net> (raw)
CREATE TYPE zzz_enum AS ENUM ('A', 'B', 'C');
CREATE TABLE zzz_test1 (z zzz_enum);
SELECT * FROM zzz_test1 WHERE z = 'A';
That works. But:
CREATE DOMAIN zzz AS zzz_enum DEFAULT 'A';
CREATE TABLE zzz_test2 (z zzz);
SELECT * FROM zzz_test2 WHERE z = 'A';
ERROR: 42883: operator does not exist: zzz = unknown
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 from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-bugs@postgresql.org
Cc: peter_e@gmx.net
Subject: Re: domain over enum problem
In-Reply-To: <1294767422.17361.3.camel@vanquo.pezone.net>
References: <1294767422.17361.3.camel@vanquo.pezone.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