pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Peter Eisentraut <peter_e@gmx.net>
Cc: pgsql-admin@postgresql.org, "Riho Maisa" <riho@centrum.ee>
Subject: Re: Inserting bit-type value into integer-type column
Date: Tue, 29 Aug 2006 09:03:17 -0400
Message-ID: <3209.1156856597@sss.pgh.pa.us> (raw)
In-Reply-To: <200608291044.31542.peter_e@gmx.net>
References: <00ec01c6cb45$ae19dbb0$6607a8c0@Maisa>
	<200608291044.31542.peter_e@gmx.net>

Peter Eisentraut <peter_e@gmx.net> writes:
> Am Dienstag, 29. August 2006 10:32 schrieb Riho Maisa:
>> I cannot rewrite SQL INSERT because it's in compiled application.

> Either fix your application or patch the PostgreSQL server or stick with 7.2 
> (not recommended, because 7.2 is not maintained anymore).

The patch would be pretty easy though: just tweak the pg_cast entry for
bit to int casting so that it's "assignment" rather than "explicit".

			regards, tom lane



view thread (3+ messages)

Message-ID: <3209.1156856597@sss.pgh.pa.us>
Permalink:  ../3209.1156856597@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/3209.1156856597@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 from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-admin@postgresql.org
  Cc: tgl@sss.pgh.pa.us, peter_e@gmx.net, riho@centrum.ee
  Subject: Re: Inserting bit-type value into integer-type column
  In-Reply-To: <3209.1156856597@sss.pgh.pa.us>
  References: <00ec01c6cb45$ae19dbb0$6607a8c0@Maisa> <200608291044.31542.peter_e@gmx.net> <3209.1156856597@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