Re: [GENERAL] Toast and slice of toast

2014-02-17 Thread Rémi Cura
Thanks everybody ! Cheers, Rémi-C 2014-02-17 10:37 GMT+01:00 Andres Freund : > On 2014-02-17 14:16:33 +1100, Haribabu Kommi wrote: > > On Sun, Feb 16, 2014 at 9:38 PM, Rémi Cura wrote: > > > > > Hey Dear List, > > > could somebody point me to some ressources about getting only parts of > > >

Re: [GENERAL] Toast and slice of toast

2014-02-17 Thread Andres Freund
On 2014-02-17 14:16:33 +1100, Haribabu Kommi wrote: > On Sun, Feb 16, 2014 at 9:38 PM, Rémi Cura wrote: > > > Hey Dear List, > > could somebody point me to some ressources about getting only parts of > > toasted data? > > > > I have a very big custom type and I would like to take blocks of it (li

Re: [GENERAL] Toast and slice of toast

2014-02-16 Thread Haribabu Kommi
On Sun, Feb 16, 2014 at 9:38 PM, Rémi Cura wrote: > Hey Dear List, > could somebody point me to some ressources about getting only parts of > toasted data? > > I have a very big custom type and I would like to take blocks of it (like > byte A to B then byte C to D then... ). > > I found a functi

[GENERAL] Toast and slice of toast

2014-02-16 Thread Rémi Cura
Hey Dear List, could somebody point me to some ressources about getting only parts of toasted data? I have a very big custom type and I would like to take blocks of it (like byte A to B then byte C to D then... ). I found a function in http://doxygen.postgresql.org/tuptoaster_8c.html#called toas

[GENERAL] Toast datum

2011-05-16 Thread Nick Raj
Hi, #define DatumGetNDBOX(x)((NDBOX*)DatumGetPointer(x)) #define PG_GETARG_NDBOX(x)DatumGetNDBOX( PG_DETOAST_DATUM(PG_GETARG_DATUM(x)) ) Now i have to define #define NDBOXGetDatum(x) ()PointerGetDatum(x) Is there any need to replace this ?? with some toastable thing or is it suff

Re: [GENERAL] Toast Table

2008-03-26 Thread Albe Laurenz
lak wrote: > What is meant by toast table? Nothing to eat :^) See http://www.postgresql.org/docs/current/static/storage-toast.html Yours, Laurenz Albe -- Sent via pgsql-general mailing list (pgsql-general@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/

Re: [GENERAL] Toast Table

2008-03-26 Thread A. Kretschmer
am Mon, dem 24.03.2008, um 6:00:08 -0700 mailte lak folgendes: > What is meant by toast table? http://www.postgresql.org/docs/current/interactive/storage-toast.html -- Andreas Kretschmer Kontakt: Heynitz: 035242/47150, D1: 0160/7141639 (mehr: -> Header) GnuPG-ID: 0x3FFF606C, privat 0x7F458

[GENERAL] Toast Table

2008-03-26 Thread lak
What is meant by toast table? -- 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] TOAST, large objects, and ACIDity

2007-07-13 Thread Jim Nasby
On Jul 10, 2007, at 3:47 AM, Benoit Mathieu wrote: I want to use postgres to store data and large files, typically audio files from 100ko to 20Mo. For those files, I just need to store et retrieve them, in an ACID way. (I don't need search, or substring, or others functionnalities) I saw pos

[GENERAL] TOAST, large objects, and ACIDity

2007-07-12 Thread Benoit Mathieu
Hi all, I want to use postgres to store data and large files, typically audio files from 100ko to 20Mo. For those files, I just need to store et retrieve them, in an ACID way. (I don't need search, or substring, or others functionnalities) I saw postgres offers at least 2 method : bytea column

Re: [GENERAL] TOAST, large objects and ACIDity

2007-07-10 Thread Tomasz Ostrowski
On Tue, 10 Jul 2007, Alexander Staubo wrote: > My take: Stick with TOAST unless you need fast random access. TOAST > is faster, more consistently supported (eg., in Slony) and easier > to work with. Toasted bytea columns have some other disadvantages also: 1. It is impossible to create its valu

Re: [GENERAL] TOAST, large objects and ACIDity

2007-07-10 Thread Alexander Staubo
On 7/10/07, Benoit Mathieu <[EMAIL PROTECTED]> wrote: I saw postgres offers at least 2 method : bytea column with TOAST, or large objects API. From the documentation: All large objects are placed in a single system table called pg_largeobject. PostgreSQL also supports a storage system calle

[GENERAL] TOAST, large objects and ACIDity

2007-07-10 Thread Benoit Mathieu
Hi all, I want to use postgres to store data and large files, typically audio files from 100ko to 20Mo. For those files, I just need to store et retrieve them, in an ACID way. (I don't need search, or substring, or others functionnalities) I saw postgres offers at least 2 method : bytea column

Re: [GENERAL] TOAST not working

2006-06-12 Thread Martijn van Oosterhout
On Sat, Jun 10, 2006 at 10:43:02PM -0400, Angus Berry wrote: > Ahhh... thank you. This clarifies TOAST for me. I see how TOAST applies > to individual columns that exceed the 8k page size. > > Postgres specs state it's possible to have 2GB rows and up to 1,600 > columns. Can you tell me what data

Re: [GENERAL] TOAST not working

2006-06-11 Thread Angus Berry
Ahhh... thank you. This clarifies TOAST for me. I see how TOAST applies to individual columns that exceed the 8k page size. Postgres specs state it's possible to have 2GB rows and up to 1,600 columns. Can you tell me what data type would get to fill this spec. I wouldn't normally push to this limi

Re: [GENERAL] TOAST not working

2006-06-10 Thread Tom Lane
"Jim C. Nasby" <[EMAIL PROTECTED]> writes: > Actually, it's BLCKSZ/4. From > http://www.postgresql.org/docs/8.1/interactive/storage-toast.html: > "The TOAST code is triggered only when a row value to be stored in a > table is wider than BLCKSZ/4 bytes (normally 2Kb)." > BTW, 'row value' seems a b

Re: [GENERAL] TOAST not working

2006-06-10 Thread Jim C. Nasby
On Sat, Jun 10, 2006 at 05:10:06PM -0400, Christopher Browne wrote: > Centuries ago, Nostradamus foresaw when [EMAIL PROTECTED] (list_man) would > write: > > Can someone tell me if I have to 'enable' TOAST on columns to have it > > kick in. According to my research, numeric data types are toastab

Re: [GENERAL] TOAST not working

2006-06-10 Thread Christopher Browne
After a long battle with technology, [EMAIL PROTECTED] (list_man), an earthling, wrote: > Hi, > > I wonder if anyone can help. > > I have a VERY wide table and rows. There are over 800 columns of type: > numeric(11,2) > > I can create the table no problem, but when I go to fill out a full row > wi

Re: [GENERAL] TOAST not working

2006-06-10 Thread Christopher Browne
Centuries ago, Nostradamus foresaw when [EMAIL PROTECTED] (list_man) would write: > Can someone tell me if I have to 'enable' TOAST on columns to have it > kick in. According to my research, numeric data types are toastable. TOAST is only used on individual columns that exceed 8K in size. The o

[GENERAL] TOAST not working

2006-06-10 Thread list_man
Hi, I wonder if anyone can help. I have a VERY wide table and rows. There are over 800 columns of type: numeric(11,2) I can create the table no problem, but when I go to fill out a full row with data, I get the message about reaching the 8k limit. Can someone tell me if I have to 'enable' TOAST

Re: [GENERAL] TOAST not working

2006-06-10 Thread list_man
Thanks for the suggestion Tom... I'm looking into it. To continue however and educate me on datatypes & TOAST, should a row of 10k+, in this case consisting of the datatype listed below, store OK, when TOAST kicks in? thanks... Angus On Sat, 2006-06-10 at 12:28 -0400, Tom Lane wrote: > list_man

Re: [GENERAL] TOAST not working

2006-06-10 Thread Tom Lane
list_man <[EMAIL PROTECTED]> writes: > I have a VERY wide table and rows. There are over 800 columns of type: > numeric(11,2) Perhaps you should reconsider your data design. Maybe some of those columns would more logically form an array? regards, tom lane ---

[GENERAL] TOAST not working

2006-06-10 Thread list_man
Hi, I wonder if anyone can help. I have a VERY wide table and rows. There are over 800 columns of type: numeric(11,2) I can create the table no problem, but when I go to fill out a full row with data, I get the message about reaching the 8k limit. Can someone tell me if I have to 'enable' TOAS

[GENERAL] TOAST

2001-02-08 Thread David Wheeler
Greetings All, I've seem some references to TOAST in 7.1. Can anyone tell me what it is and/or where I can read all about it and how it will solve all my problems using BLOBs with PostgreSQL? Thanks! David

Re: [GENERAL] TOAST & performance with lots of big columns in a table

2000-12-13 Thread Frank Joerdens
Uh, I think I was wired rather the wrong way up, this question is confused. What a little fresh air can do. Cycling home from the office cleared the confusion in my head: It is of course nonsense to store all translations in a single row, also to have different tables for different languages. You

[GENERAL] TOAST & performance with lots of big columns in a table

2000-12-13 Thread Frank Joerdens
I've got an articles table where I want to store texts, of which several translations exist. Thanks to TOAST I can now store texts of arbitrary length directly in the table, which is already a big advantage over stuffing them into the file system and trying to keep the database and file system in