From: Tom Lane <tgl@sss.pgh.pa.us>
To: michael@synchronicity.com
Cc: pgsql-admin@postgresql.org
Subject: Re: Problem with view upgrading from 7.2 to 7.3
Date: Mon, 17 Mar 2003 16:50:24 -0500
Message-ID: <10699.1047937824@sss.pgh.pa.us> (raw)
In-Reply-To: <DEEIJKLFNJGBEMBLBAHCAEDDCPAA.michael@synchronicity.com>
References: <DEEIJKLFNJGBEMBLBAHCAEDDCPAA.michael@synchronicity.com>
Michael Brusser <michael@synchronicity.com> writes:
> Generally it seem to work, but it breaks while attempting to load
> one view definition. Server complains about nonexistant function -
> varchar(int), as far as I remember.
Yeah, we removed the int->varchar cast because it was redundant with
int->text, and caused operator resolution failures in some cases.
> There's no problem if I try to manually create the view in the way it was
> created in the old database:
Re-enter the view, then. The || expression will come out as text
instead of varchar; if you really want the view column to look like
it's a varchar you can do
('sync:///Note/SyncNotes/' || nt_note_name || '/'
|| nl_note_id)::varchar AS note_url
regards, tom lane
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, michael@synchronicity.com
Subject: Re: Problem with view upgrading from 7.2 to 7.3
In-Reply-To: <10699.1047937824@sss.pgh.pa.us>
References: <DEEIJKLFNJGBEMBLBAHCAEDDCPAA.michael@synchronicity.com> <10699.1047937824@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