Re: [GENERAL] Maximum size for char or varchar with limit

2010-12-20 Thread Filip RembiaƂkowski
2010/12/19 Jasen Betts > I have some values of perhaps 20Mb that I might want to store samples > of in a partitioned table. (so I can delete them easily) what's the right > way? > > 20 Mbits or 20 MBytes? how big samples? answer to your question depends on what you want to do with these samples

Re: [GENERAL] Maximum size for char or varchar with limit

2010-12-19 Thread Jasen Betts
On 2010-12-08, Tom Lane wrote: > Adrian Klaver writes: >> On 12/08/2010 08:04 AM, Tom Lane wrote: >>> The rationale for having a limit of this sort is (a) we *don't* want >>> the upper limit of declarable length to be encoding-dependent; and >>> (b) if you are trying to declare an upper limit tha

Re: [GENERAL] Maximum size for char or varchar with limit

2010-12-08 Thread Adrian Klaver
On 12/08/2010 09:05 AM, Tom Lane wrote: Adrian Klaver writes: On 12/08/2010 08:04 AM, Tom Lane wrote: The rationale for having a limit of this sort is (a) we *don't* want the upper limit of declarable length to be encoding-dependent; and (b) if you are trying to declare an upper limit that's g

Re: [GENERAL] Maximum size for char or varchar with limit

2010-12-08 Thread Tom Lane
Adrian Klaver writes: > On 12/08/2010 08:04 AM, Tom Lane wrote: >> The rationale for having a limit of this sort is (a) we *don't* want >> the upper limit of declarable length to be encoding-dependent; and >> (b) if you are trying to declare an upper limit that's got more than a >> few digits in i

Re: [GENERAL] Maximum size for char or varchar with limit

2010-12-08 Thread Adrian Klaver
On 12/08/2010 08:04 AM, Tom Lane wrote: Adrian Klaver writes: So the answer is, it depends on your encoding. No, it doesn't. What Rob is looking for is this bit in htup.h: /* * MaxAttrSize is a somewhat arbitrary upper limit on the declared size of * data fields of char(n) and similar t

Re: [GENERAL] Maximum size for char or varchar with limit

2010-12-08 Thread Rob Gansevles
Thanks Tom, this is very helpful. Rob -- Sent via pgsql-general mailing list (pgsql-general@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-general

Re: [GENERAL] Maximum size for char or varchar with limit

2010-12-08 Thread Tom Lane
Adrian Klaver writes: > So the answer is, it depends on your encoding. No, it doesn't. What Rob is looking for is this bit in htup.h: /* * MaxAttrSize is a somewhat arbitrary upper limit on the declared size of * data fields of char(n) and similar types. It need not have anything * directly

Re: [GENERAL] Maximum size for char or varchar with limit

2010-12-08 Thread Adrian Klaver
On Wednesday 08 December 2010 7:06:07 am Rob Gansevles wrote: > Adrian, > > Thanks for the reply, but this refers to max row or field size, it > does not tell me where the max varchar limit of 10485760 comes from > and if this is fixed or whether it depends on something else > > Has anyone some inf

Re: [GENERAL] Maximum size for char or varchar with limit

2010-12-08 Thread Rob Gansevles
Adrian, Thanks for the reply, but this refers to max row or field size, it does not tell me where the max varchar limit of 10485760 comes from and if this is fixed or whether it depends on something else Has anyone some info on this? Rob On Wed, Dec 8, 2010 at 3:34 PM, Adrian Klaver wrote: > O

Re: [GENERAL] Maximum size for char or varchar with limit

2010-12-08 Thread Adrian Klaver
On Wednesday 08 December 2010 5:47:25 am Rob Gansevles wrote: > Hello, > > Does anyone know what the maximum length is for char or varchar > columns with limit. > I saw some answers to this same question referring to section 8.3 of > the docs, but I don't see the actual numbers there. > > I know yo