Re: [GENERAL] BLOB updates -> database size explodes

2013-05-30 Thread Luca Ferrari
On Thu, May 30, 2013 at 12:49 AM, Stephen Scheck wrote: > If this hypothesis is correct, doing a vacuum should free up dead pages and > your size expectations should be more accurate. And if that's the case > putting more intelligence into the application could mitigate some of the > update growt

Re: [GENERAL] BLOB updates -> database size explodes

2013-05-29 Thread Stephen Scheck
This is just a guess (I haven't dug into the low-level page/disk access Postgres code for Large Objects yet but if I'm right, the LO-based project I'm working on will likely face the same issues you're seeing), but LOs enjoy transactional behavior just like anything else (as far as I can tell from

[GENERAL] BLOB updates -> database size explodes

2013-05-28 Thread Dimitar Misev
I'm having some issue with BLOB updates (via ECPG). The total blobs size should be ~280MB, but after partially updating all of them for 150 times the size on disk grows up from 184MB to 18GB. In more details: There are 608 blobs of size 460800 bytes. All blobs are updated piecewise in 150 rep

Re: [GENERAL] Blob handling with Delphi...

2011-04-13 Thread John R Pierce
On 04/13/11 1:28 AM, Durumdara wrote: Hi! PG9.0, Delphi 6, Zeos. I want to use PGSQL bytea field as normal BLOB field in Delphi. But when I insert a value into this field, for example all characters (chr 0..255), and I fetch, and save it as blob stream into a file, I got interesting result,

[GENERAL] Blob handling with Delphi...

2011-04-13 Thread Durumdara
Hi! PG9.0, Delphi 6, Zeos. I want to use PGSQL bytea field as normal BLOB field in Delphi. But when I insert a value into this field, for example all characters (chr 0..255), and I fetch, and save it as blob stream into a file, I got interesting result, not what I stored here previously. It is

Re: [GENERAL] Blob fields and backups

2006-11-30 Thread Jim Nasby
On Nov 30, 2006, at 5:15 AM, [EMAIL PROTECTED] wrote: I have an Oracle DB, where my backup file is 280 GB and growing. I also have a lot of blob fields there. When i make a backup recover, the blob fields are there, and my boss is alive. I want to know how postgresql's backup utilities deal

[GENERAL] Blob fields and backups

2006-11-30 Thread william . munoz
Hi, I have an Oracle DB, where my backup file is 280 GB and growing. I also have a lot of blob fields there. When i make a backup recover, the blob fields are there, and my boss is alive. I want to know how postgresql's backup utilities deal with blob fields... Thanks, -

Re: [GENERAL] BLOB & Searching

2006-06-13 Thread Joshua D. Drake
Jim C. Nasby wrote: On Mon, Jun 12, 2006 at 02:44:34PM -0700, [EMAIL PROTECTED] wrote: 1. How can I store the word doc's in the DB, would it be best to use a BLOB data type? Use a bytea field. 2. Does Postgres support full text searching of a word document once it Nope. Not natively. It

Re: [GENERAL] BLOB & Searching

2006-06-13 Thread Jim C. Nasby
On Mon, Jun 12, 2006 at 02:44:34PM -0700, [EMAIL PROTECTED] wrote: > 1. How can I store the word doc's in the DB, would it be best to use a > BLOB data type? Use a bytea field. > 2. Does Postgres support full text searching of a word document once it Nope. > is loaded into the BLOB column & h

[GENERAL] BLOB & Searching

2006-06-13 Thread jdwatson1
Hi, I am not 100% sure what the best solution would be, so I was hoping someone could point me in the right direction. I usually develop in MS tools, such as .net, ASP, SQL Server etc..., but I really want to expand my skillset and learn as much about Postgres as possible. What I need to do, is

Re: [GENERAL] BLOB and OID

2005-11-04 Thread vishal saberwal
yes, there is one, but i dont know how would you modify the PostgreSQL code. You can implement a GUID datatype and can use it as indexing which guarantees uniqueness and can be stored in double format. thanks, vishOn 11/4/05, Lolke B. Dijkstra <[EMAIL PROTECTED]> wrote: Hi,OID being a 4 byte int

[GENERAL] BLOB and OID

2005-11-04 Thread Lolke B. Dijkstra
Hi, OID being a 4 byte int seems limited to indexing for binary objects. More precisely I use BLOB to store images in the database and link these objects to another table using the OID as FK. If I run out of OID there will be no way to index new images. Of course when not automatically creatin

Re: [GENERAL] Blob data type and it's efficiency on PostgreSQL

2005-09-20 Thread Daniel Schuchardt
Stas Oskin schrieb: Hi. We are using PostgreSQL as the RDBMS for our product, and are very happy with it. Recently, we have encountered a need to store a lot of binary files, mainly images (up to ~100,000 files, with sizes varying from 300K-2MB). The question is, how well PostgreSQL

[GENERAL] Blob data type and it's efficiency on PostgreSQL

2005-09-19 Thread Stas Oskin
Hi.   We are using PostgreSQL as the RDBMS for our product, and are very happy with it. Recently, we have encountered a need to store a lot of binary files, mainly images (up to ~100,000 files, with sizes varying from 300K-2MB).   The question is, how well PostgreSQL performs with the b

Re: [GENERAL] blob storage

2005-04-26 Thread Tom Lane
Alvaro Herrera <[EMAIL PROTECTED]> writes: > On Tue, Apr 26, 2005 at 03:41:28PM -0500, Scott Marlowe wrote: >> If you store them as large objects, they will each get their own file. > Huh, no, they won't. They will be stored in the pg_largeobject table. > It's been quite a while since they are no

Re: [GENERAL] blob storage

2005-04-26 Thread Scott Marlowe
On Tue, 2005-04-26 at 16:42, Alvaro Herrera wrote: > On Tue, Apr 26, 2005 at 03:41:28PM -0500, Scott Marlowe wrote: > > On Tue, 2005-04-26 at 15:30, Travis Harris wrote: > > > I would like to use P* to store files. These files will probably > > > range from 500K to 2 MB in size and there will be t

Re: [GENERAL] blob storage

2005-04-26 Thread Alvaro Herrera
On Tue, Apr 26, 2005 at 03:41:28PM -0500, Scott Marlowe wrote: > On Tue, 2005-04-26 at 15:30, Travis Harris wrote: > > I would like to use P* to store files. These files will probably > > range from 500K to 2 MB in size and there will be thousands upon > > thousands of them. I was wondering how P

Re: [GENERAL] blob storage

2005-04-26 Thread Rich Shepard
On Tue, 26 Apr 2005, Travis Harris wrote: I would like to use P* to store files. These files will probably range from 500K to 2 MB in size and there will be thousands upon thousands of them. I was wondering how P* stores blobs, if it is all in one file, or if each blob is sored in it's own file. T

Re: [GENERAL] blob storage

2005-04-26 Thread Joshua D. Drake
Travis Harris wrote: I would like to use P* to store files. These files will probably range from 500K to 2 MB in size and there will be thousands upon thousands of them. I was wondering how P* stores blobs, Either as bytea or a large object. if it is all in one file, or if each blob is sored in i

Re: [GENERAL] blob storage

2005-04-26 Thread Scott Marlowe
On Tue, 2005-04-26 at 15:30, Travis Harris wrote: > I would like to use P* to store files. These files will probably > range from 500K to 2 MB in size and there will be thousands upon > thousands of them. I was wondering how P* stores blobs, if it is all > in one file, or if each blob is sored in

[GENERAL] blob storage

2005-04-26 Thread Travis Harris
I would like to use P* to store files. These files will probably range from 500K to 2 MB in size and there will be thousands upon thousands of them. I was wondering how P* stores blobs, if it is all in one file, or if each blob is sored in it's own file. The reason being, I know that windows has

Re: [GENERAL] Blob Fields

2005-03-04 Thread Ulrich Schwab
Alexandre da Siva wrote: > Blobs is not Implemented on PostgreSQL, but I need to this field type on > PosgreSQL databases, how I can to use this? I'm using delphi... > > > ps: I readed PosgreSQL Manual and other lists and sites, but not get a > answer for my specific problem PostgreSQL has large

Re: [GENERAL] Blob Fields

2005-03-04 Thread J. Greenlees
Alexandre da Siva wrote: Blobs is not Implemented on PostgreSQL, but I need to this field type on PosgreSQL databases, how I can to use this? I'm using delphi... ps: I readed PosgreSQL Manual and other lists and sites, but not get a answer for my specific problem http://www.postgresql.org/docs/8.

[GENERAL] Blob Fields

2005-03-04 Thread Alexandre da Siva
Blobs is not Implemented on PostgreSQL, but I need to this field type on PosgreSQL databases, how I can to use this? I'm using delphi...     ps: I readed PosgreSQL Manual and other lists and sites, but not get a answer for my specific problem  

Re: [GENERAL] BLOB help needed...

2004-04-27 Thread Development - multi.art.studio
Hi, i wrote a php skript to test this, works beautiful, you can download the script at http://www.erdtrabant.de/index.php?i=500200104 volker Guy Fraser wrote: If you are using php, the two functions below should help. http://ca.php.net/manual/en/function.pg-escape-bytea.php http://ca.php.net/manual

Re: [GENERAL] BLOB help needed...

2004-04-27 Thread Guy Fraser
If you are using php, the two functions below should help. http://ca.php.net/manual/en/function.pg-escape-bytea.php http://ca.php.net/manual/en/function.pg-unescape-bytea.php Taber, Mark wrote: We’re implementing our first PostgreSQL database, and enjoying it very much. However, we have a table th

[GENERAL] BLOB help needed...

2004-04-27 Thread Taber, Mark
We’re implementing our first PostgreSQL database, and enjoying it very much.  However, we have a table that will store binary image files (pie charts, etc.) for later display on a dynamic webpage.  While we’re putting together our prototype application, I’ve been asked by the programmers (I

Re: [GENERAL] BLOB problem

2004-02-03 Thread Tom Lane
Rens Admiraal <[EMAIL PROTECTED]> writes: > upload te file using pg_lo_import() (PHP function). Everything works > fine, fast, and I was really glad with it, till I found out that my > database is rapadly growing. With only 20 images the database has a size > of 65 MB !!! Hard to tell much from

[GENERAL] BLOB problem

2004-02-03 Thread Rens Admiraal
Hi, I've encountered a problem with a PostgreSQL database. I made a image management system which stores images in a database from a PHP script. I upload te file using pg_lo_import() (PHP function). Everything works fine, fast, and I was really glad with it, till I found out that my database i

Re: [GENERAL] BLOB problem

2004-02-03 Thread Doug McNaught
Rens Admiraal <[EMAIL PROTECTED]> writes: >I've encountered a problem with a PostgreSQL database. I made a image >management system which stores images in a database from a PHP script. >I upload te file using pg_lo_import() (PHP function). Everything works >fine, fast, and I was re

[GENERAL] BLOB problem

2004-02-03 Thread Rens Admiraal
Hi, I've encountered a problem with a PostgreSQL database. I made a image management system which stores images in a database from a PHP script. I upload te file using pg_lo_import() (PHP function). Everything works fine, fast, and I was really glad with it, till I found out that my database

[GENERAL] BLOB

2001-10-17 Thread Benny Marin
Hello, Can someone tell me how to work with large objects ? All I want to do is to store an image into my database and retrieve them back. What datatype do I have to use? What is the sql statement to send a image to the database and how can I retrieve it back. I'm using php or VB. Thanks -

[GENERAL] BLOB type

2001-05-03 Thread Vladislav Breus
Has PostgreSQL the data type such ORACLE BLOB type ? (BLOB: A binary large object. Maximum size is 4 gigabytes.) I have about 200-300 binary files (with size less then 1-2 MB), which I need storage in DB. ---(end of broadcast)--- TIP 3: if postin

[GENERAL] BLOB DBI func() interface under postgres

2000-06-27 Thread Louis-David Mitterrand
Hello, In DBD::Pg one can read (line 134): $lobj_fd = $dbh->func($lobjId, $mode, 'lo_open'); But how is the LOB retrieved in the first place? If I pass the OID of an existing LOB instance from a table the returned $lobj_fd is null. What kind of $lobjId is one supposed to pass to this functi

RE: [GENERAL] BLOB datatype

2000-04-10 Thread Sampath, Krishna
look at the examples in the postgresql book available on the website. krishna -Original Message- From: iqbal [mailto:[EMAIL PROTECTED]] Sent: Monday, April 10, 2000 7:11 AM To: [EMAIL PROTECTED] Subject: [GENERAL] BLOB datatype i have created a table having blob object but now i am

[GENERAL] BLOB datatype

2000-04-10 Thread iqbal
i have created a table having blob object but now i am  not able to insert a picture into the table. Can you send me sql command to insert picture into the table i need syntax. i tried through DB2IMAGE but failed to insert.   if there is any other method of putting image in the table, kindly