Skip site navigation (1) Skip section navigation (2)

Re: [RFC] Unsigned integer support.

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Gregory Stark <stark(at)enterprisedb(dot)com>
Cc: "Decibel!" <decibel(at)decibel(dot)org>, "Alvaro Herrera" <alvherre(at)commandprompt(dot)com>, "Ryan Bradetich" <rbradetich(at)gmail(dot)com>, pgsql-hackers(at)postgresql(dot)org
Subject: Re: [RFC] Unsigned integer support.
Date: 2008-07-28 23:13:20
Message-ID: (view raw, whole thread or download thread mbox)
Lists: pgsql-hackers
Gregory Stark <stark(at)enterprisedb(dot)com> writes:
> "Decibel!" <decibel(at)decibel(dot)org> writes:
>> Do we really want to be making it easier for people to wrap numbers  in quotes?

> Currently wrapping numbers in quotes is really the way Postgres expects to get
> them.


regression=# select '2' + '2';
ERROR:  operator is not unique: unknown + unknown
LINE 1: select '2' + '2';
HINT:  Could not choose a best candidate operator. You might need to add explicit type casts.

We've worked really hard to get to a point where interpretation of
literals mostly behaves unsurprisingly.  I think most people would
find it surprising to think that quoting a number is the preferred
way to represent it.

			regards, tom lane

In response to

pgsql-hackers by date

Next:From: Robert LorDate: 2008-07-28 23:17:56
Subject: Re: Review: DTrace probes (merged version) ver_03
Previous:From: Andrew DunstanDate: 2008-07-28 23:09:08
Subject: Re: WITH RECUSIVE patches 0723

Privacy Policy | About PostgreSQL
Copyright © 1996-2017 The PostgreSQL Global Development Group