pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Leslie Mikesell <les@Mcs.Net>
To: pgsql-sql@postgreSQL.org
Subject: varchar vs. text
Date: Sat, 24 Oct 1998 12:37:42 -0500 (CDT)
Message-ID: <199810241737.MAA29834@Jupiter.mcs.net> (raw)

Is there any way to apply the text functions to a varchar field or
convert from varchar to text?  I set up a database with varchar
fields with unspecified sizes because at the time the odbc driver
didn't like to use text as a unique key.  Now pg_dump sets the
size as (-5) which won't reload unless I take it out, and I can't
use many of the text-style operators.  Using field::text gives:
'ERROR:  function text(varchar) does not exist'.  Is there any
reason to use varchar now that the ODBC driver works with text,
and is there any way to convert short of pg_dump'ing and editing
the structure?  

 Les Mikesell
   les@mcs.com



view thread (11+ messages)  latest in thread

Message-ID: <199810241737.MAA29834@Jupiter.mcs.net>
Permalink:  ../199810241737.MAA29834@Jupiter.mcs.net/
Also on:    postgresql.org/message-id/199810241737.MAA29834@Jupiter.mcs.net

 · 

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-sql@postgresql.org
  Cc: les@Mcs.Net
  Subject: Re: varchar vs. text
  In-Reply-To: <199810241737.MAA29834@Jupiter.mcs.net>

* 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