Re: magic constant -1 - Mailing list pgsql-hackers

From Tom Lane
Subject Re: magic constant -1
Date
Msg-id 15081.1257461974@sss.pgh.pa.us
Whole thread Raw
In response to magic constant -1  (Pavel Stehule <pavel.stehule@gmail.com>)
Responses Re: magic constant -1
List pgsql-hackers
Pavel Stehule <pavel.stehule@gmail.com> writes:
> we use a value -1 as two values: a) unknown typmod, b) unknown
> location. Can we substitute it by some better identifier?

> Maybe: UnknownTmod, UnknownLoc ... UnspecTmd, UnspecLoc???

Doesn't really seem worth the trouble, especially since the checks
for "unspecified" are coded as negative/nonnegative rather than
simple equality.
        regards, tom lane


pgsql-hackers by date:

Previous
From: Andrew Dunstan
Date:
Subject: Re: plperl and inline functions -- first draft
Next
From: Joshua Tolley
Date:
Subject: Re: plperl and inline functions -- first draft