pg.ddx.io  pgsql-patches@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Jaime Casanova <jcasanov@systemguards.com.ec>
Cc: Ryan Bradetich <rbradetich@gmail.com>
Cc: pgsql-patches <pgsql-patches@postgresql.org>
Subject: Re: [PgFoundry] Unsigned Data Types [1 of 2]
Date: Sun, 07 Sep 2008 01:55:30 -0400
Message-ID: <7416.1220766930@sss.pgh.pa.us> (raw)
In-Reply-To: <3073cc9b0809062246p2add97baka9252d6c32aa1d5b@mail.gmail.com>
References: <e739902b0808311335l1ad5d425r2704429c386f2f88@mail.gmail.com>
	<3073cc9b0809061341q5c747488i85491e4c8e2420ba@mail.gmail.com>
	<25089.1220734677@sss.pgh.pa.us>
	<3073cc9b0809061610s149ef06ah5bb601b081b29db6@mail.gmail.com>
	<27485.1220746204@sss.pgh.pa.us>
	<3073cc9b0809062246p2add97baka9252d6c32aa1d5b@mail.gmail.com>

"Jaime Casanova" <jcasanov@systemguards.com.ec> writes:
> then the patch is right but it seems to me like that is broking the
> law of less surprise i expected -2::uint1 to be equivalent to
> (-2)::uint1 that should be at least documented, no?

See the precedence table here:
http://www.postgresql.org/docs/8.3/static/sql-syntax-lexical.html#SQL-PRECEDENCE

:: binds more tightly than -, and always has.

			regards, tom lane



view thread (26+ messages)  latest in thread

Message-ID: <7416.1220766930@sss.pgh.pa.us>
Permalink:  ../7416.1220766930@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/7416.1220766930@sss.pgh.pa.us

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-patches@postgresql.org
  Cc: tgl@sss.pgh.pa.us, jcasanov@systemguards.com.ec, rbradetich@gmail.com
  Subject: Re: [PgFoundry] Unsigned Data Types [1 of 2]
  In-Reply-To: <7416.1220766930@sss.pgh.pa.us>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox