Re: OCTET_LENGTH is wrong

From: Peter Eisentraut <peter_e(at)gmx(dot)net>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: Stephan Szabo <sszabo(at)megazone23(dot)bigpanda(dot)com>, PostgreSQL Development <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: OCTET_LENGTH is wrong
Date: 2001-11-19 12:39:01
Message-ID: Pine.LNX.4.30.0111182251580.613-100000@peter.localdomain
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Tom Lane writes:

> What
> I am trying to point out is that the spec is so vague that it's not
> clear what the correct answer is.

I guess the authors of SQL92 never imagined someone would question what
"value of S" means. In SQL99 they included it:

SQL 99 Part 1, 4.4.3.2.

A value of character type is a string (sequence) of characters
drawn from some character repertoire.

Just to be sure...

SQL 99 Part 1, 3.1 q)

q) sequence: An ordered collection of objects that are not
necessarily distinct.

I don't have a set theory text available, but I think this should give a
fair indication that the number of bits in the value of S is the sum of
the bits in each individual character (which is in turn vaguely defined
elsewhere in SQL99) -- at least in Euclidean memory architectures.

--
Peter Eisentraut peter_e(at)gmx(dot)net

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Zeugswetter Andreas SB SD 2001-11-19 12:55:10 Re: Further open item (Was: Status of 7.2)
Previous Message Tille, Andreas 2001-11-19 12:06:09 Re: Further open item (Was: Status of 7.2)