pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Karsten Hilbert <Karsten.Hilbert@gmx.net>
To: pgsql-general@lists.postgresql.org
Subject: Re: Too short field
Date: Wed, 3 Jul 2019 14:10:55 +0200
Message-ID: <20190703121055.GC2383@hermes.hilbert.loc> (raw)
In-Reply-To: <b56469aa-4a9c-f678-a950-39fdcd43fb97@gmx.net>
References: <78d5b939297348b8856d457be7a63e7e@UKEXCHMBX003.TechMahindra.com>
	<b56469aa-4a9c-f678-a950-39fdcd43fb97@gmx.net>

On Wed, Jul 03, 2019 at 01:56:03PM +0200, Thomas Kellerer wrote:

> Karl Martin Skoldebrand schrieb am 03.07.2019 um 13:30:
> > Now, we have a bug in another application that prevents an automatic
> > tool to enter certain users in the database. The organisational field
> > is varchar(60) while the actual Organisation “abbreviation” may be as
> > long as 70 characters (don’t ask why).
> >
> > What happens to data if I simple redefine the table field as
> > varchar(80) (or something, at least 70+). Does “everything” break
> > database side or can I just go on running the app as is.
>
> Nothing will break on the database size.

We don't know. There may be functions in triggers or for
direct use which rely on the assumption that it be 60 chars
max.

PostgreSQL itself won't care, that much holds.

Karsten
--
GPG  40BE 5B0E C98E 1713 AFA6  5BC0 3BEA AC80 7D4F C89B





view thread (7+ messages)  latest in thread

Message-ID: <20190703121055.GC2383@hermes.hilbert.loc>
Permalink:  ../20190703121055.GC2383@hermes.hilbert.loc/
Also on:    postgresql.org/message-id/20190703121055.GC2383@hermes.hilbert.loc

 · 

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-general@postgresql.org
  Cc: Karsten.Hilbert@gmx.net
  Subject: Re: Too short field
  In-Reply-To: <20190703121055.GC2383@hermes.hilbert.loc>
  References: <78d5b939297348b8856d457be7a63e7e@UKEXCHMBX003.TechMahindra.com> <b56469aa-4a9c-f678-a950-39fdcd43fb97@gmx.net> <20190703121055.GC2383@hermes.hilbert.loc>

* 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