Parser or documentation bug?

From: Adriaan Joubert <a(dot)joubert(at)albourne(dot)com>
To: Postgres-General <pgsql-general(at)postgreSQL(dot)org>
Subject: Parser or documentation bug?
Date: 1999-06-03 11:54:55
Message-ID: 37566D0F.F6A94179@albourne.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Hi,

I'm trying to define a new bit type with a length of two bytes, and to
define a set of operators on this type. I've hit the following problem:
I cannot define a | operator, as the parser doesn't like it.

tt=> drop operator | (Bit2,Bit2);
ERROR: parser: parse error at or near "|"
tt=> create operator | (
leftarg = Bit2,
rightarg = Bit2,
procedure = bit2or
);
ERROR: parser: parse error at or near "|"

If I use || it works. So either the man page or the parser are at fault
here. I'm currently using the snapshot from last Friday. I can also do a
create by enclosing the | in double-quotes, as in "|", but I cannot use
it, and I cannot drop it.

Cheers,

Adriaan

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Tim Joyce 1999-06-03 13:08:07 Re: [GENERAL] PL/pgSQL help
Previous Message The Hermit Hacker 1999-06-03 11:53:51 Re: [GENERAL] Parallelizing PostgreSQL for Cluster