Re: Limit for number of Joins in a View? Version 8.1.4 on Redhat 9

From: MargaretGillon(at)chromalloy(dot)com
To: Alvaro Herrera <alvherre(at)commandprompt(dot)com>
Cc: Jim Nasby <decibel(at)decibel(dot)org>, Richard Huxton <dev(at)archonet(dot)com>, pgsql-general(at)postgresql(dot)org
Subject: Re: Limit for number of Joins in a View? Version 8.1.4 on Redhat 9
Date: 2007-02-08 22:39:47
Message-ID: OF2E2627A3.47B95407-ON8825727C.007C295D-8825727C.007C7D42@CHROMALLOY.COM
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-general

>Alvaro Herrera <alvherre(at)commandprompt(dot)com> wrote on 02/08/2007 01:58:20
PM:
> The "char" type (including quotes) is a very different animal from all
> those character types the manual you quote is talking about. "char" is
> a single byte, while varchar(1) and all the rest are a single character,
> meaning there can be multiple bytes in presence of a multibyte encoding;
> so Postgres is forced to use a variable-length structure to store it.
> "char" has no such requirement. It's used in the system catalogs as a
> "poor man's enum", for example in pg_class.relkind.
>
> --
> Alvaro Herrera http://www.CommandPrompt.com/
> The PostgreSQL Company - Command Prompt, Inc.

Using PGADMINIII I added a column of this type to my database but when I
try to update it I get an error.

column:
ALTER TABLE datatype ADD COLUMN charflag "char"[];
ALTER TABLE datatype ALTER COLUMN charflag SET STORAGE EXTENDED;
COMMENT ON COLUMN datatype.charflag IS 'testing';

update:
update datatype set charflag = 'A';

results:
ERROR: array value must start with "{" or dimension information
SQL state: 22P02

Margaret Gillon

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Alvaro Herrera 2007-02-08 22:51:52 Re: Limit for number of Joins in a View? Version 8.1.4 on Redhat 9
Previous Message Rodrigo Gonzalez 2007-02-08 22:37:28 Re: Problems shutting down Postmaster