Re: [GENERAL] Load Image File From PostgreSQL DB

2008-12-29 Thread Julius Tuskenis
Hi, dbalinglung. You are probably confusing types oid and lo or bytea. There's no way you could put a image into oid column. I'm using bytea type without problems. Also check "bytea as lo" checkbox in ODBC dialog (if you use ODBC). Also TDBImage is no good if you want to use jpg files. I found

[GENERAL] Load Image File From PostgreSQL DB

2008-12-29 Thread dbalinglung
Dear Expert, I'm sorry for my newbie question, I have a dificulty to load image file from field OID type on PostgreSQL with Borland Delphi 7. I would like to showing image file with TDBImage component to Delphi Form, but the image file can't display, any sugestion for me about how can i do to

Re: [GENERAL] Query planner and foreign key constraints

2008-12-29 Thread Filip Rembiałkowski
2008/12/30 Christian Schröder > Hi list, > in our PostgreSQL 8.2.9 database I have these tables: > > create table table1 ( > key1 char(12), > key2 integer, > primary key (key1, key2) > ); > > create table table2 ( > key1 char(12), > key2 integer, > key3 v

[GENERAL] Query planner and foreign key constraints

2008-12-29 Thread Christian Schröder
Hi list, in our PostgreSQL 8.2.9 database I have these tables: create table table1 ( key1 char(12), key2 integer, primary key (key1, key2) ); create table table2 ( key1 char(12), key2 integer, key3 varchar(20), primary key (key1, key2, ke

Re: [GENERAL] How can the error log be searched?

2008-12-29 Thread Adrian Klaver
On Monday 29 December 2008 11:28:13 am Rob Richardson wrote: > Greetings! > > A customer reported an error generated by our database. However, many > of our functions have errors in RAISE EXCEPTION statements, in which the > % character was omitted. The error message the customer saw was > compla

[GENERAL] How can the error log be searched?

2008-12-29 Thread Rob Richardson
Greetings! A customer reported an error generated by our database. However, many of our functions have errors in RAISE EXCEPTION statements, in which the % character was omitted. The error message the customer saw was complaining that there were too many arguments to a RAISE statement. We were

Re: [GENERAL] open transaction?

2008-12-29 Thread Bayless Kirtley
- Original Message - From: "Terry Lee Tucker" To: Sent: Monday, December 29, 2008 5:57 AM Subject: Re: [GENERAL] open transaction? On Monday 29 December 2008 06:48, blackwater dev wrote: I just logged into postgres from the command line and did: begin: select blah; select blah;

Re: [GENERAL] [PGSQL 8.3.5] Use of a partial indexes

2008-12-29 Thread Scott Marlowe
On Mon, Dec 29, 2008 at 9:28 AM, Scott Ribe wrote: >> voila! cache dumped. > > What about read caches in the disk devices themselves? Given that most drives have caches that are in the 16 to 32Meg range, I doubt it makes a big difference. But you can always just dd a file both ways that are 100

Re: [GENERAL] [PGSQL 8.3.5] Use of a partial indexes

2008-12-29 Thread Scott Ribe
> voila! cache dumped. What about read caches in the disk devices themselves? -- Scott Ribe scott_r...@killerbytes.com http://www.killerbytes.com/ (303) 722-0567 voice -- Sent via pgsql-general mailing list (pgsql-general@postgresql.org) To make changes to your subscription: http://www.post

Re: [GENERAL] [PGSQL 8.3.5] Use of a partial indexes

2008-12-29 Thread Scott Marlowe
On Mon, Dec 29, 2008 at 8:36 AM, Scott Ribe wrote: > Creating the partial index reads rows, and the pages are left in the disk > cache. The only way to do proper comparisons is to reboot between trials in > order to compare queries with cold caches, or use the latter of multiple > runs in order to

Re: [GENERAL] [PGSQL 8.3.5] Use of a partial indexes

2008-12-29 Thread Scott Ribe
> The WHERE condition can be divided into a "slowly changing" part and in > a "random" one. The random part is the one I change at every query to avoid > result caching. The first query will leave in cache at least many of the index pages needed by the second query, and likely actual rows needed b

Re: [GENERAL] [PGSQL 8.3.5] Use of a partial indexes

2008-12-29 Thread Scott Marlowe
On Mon, Dec 29, 2008 at 7:41 AM, Reg Me Please wrote: > Hi. > > The WHERE condition can be divided into a "slowly changing" part and in > a "random" one. The random part is the one I change at every query to avoid > result caching. > > The planner seems to be smart enough to "learn" while working

Re: [GENERAL] [PGSQL 8.3.5] Use of a partial indexes

2008-12-29 Thread Reg Me Please
Hi. The WHERE condition can be divided into a "slowly changing" part and in a "random" one. The random part is the one I change at every query to avoid result caching. The planner seems to be smart enough to "learn" while working but then I should see a change in the EXPLAIN output, which never h

Re: [GENERAL] [PGSQL 8.3.5] Use of a partial indexes

2008-12-29 Thread Gauthier, Dave
Not sure if this applies to your case, but I've seen cases where an initial run of a particular query is a lot slower than subsequent runs even though no changes were made between the two. I suspect that the initial run did all the disk IO needed to get the data (slow), and that the subsequent

[GENERAL] [PGSQL 8.3.5] Use of a partial indexes

2008-12-29 Thread Reg Me Please
HI all. I have a 8M+ rows table over which I run a query with a and-only WHERE condition. The table has been periodically VACUUMed and ANALYZEd. In the attempt of speeding that up I added a partial index in order to limit the size of the index. Of course that index is modeled after a "slowly var

Re: [GENERAL] open transaction?

2008-12-29 Thread Terry Lee Tucker
On Monday 29 December 2008 06:48, blackwater dev wrote: > I just logged into postgres from the command line and did: > > begin: > > select blah; > select blah; > > \q > > Without thinking I closed by connection before committing or rolling back > my transaction. Did postgres handle this for me? H

Re: [GENERAL] open transaction?

2008-12-29 Thread Pavel Stehule
Hello maybe you have autocommit on try [pa...@localhost ~]$ psql postgres psql (8.4devel) Type "help" for help. postgres=# \set AUTOCOMMIT = 'on' PROMPT1 = '%/%R%# ' PROMPT2 = '%/%R%# ' regards Pavel Stehule 2008/12/29 Raymond O'Donnell : > On 29/12/2008 11:53, Raymond O'Donnell wrote: >> On

Re: [GENERAL] encoding of PostgreSQL messages

2008-12-29 Thread Alvaro Herrera
Karsten Hilbert wrote: > On Tue, Dec 23, 2008 at 06:45:17PM -0300, Alvaro Herrera wrote: > > Hmm, isn't client_encoding reported in the startup packet sent by the > > server, after auth? > > That would not quite be enough -- I am talking about > messages reported *during* auth, say > > FAT

Re: [GENERAL] open transaction?

2008-12-29 Thread Raymond O'Donnell
On 29/12/2008 11:53, Raymond O'Donnell wrote: > On 29/12/2008 11:48, blackwater dev wrote: > >> Without thinking I closed by connection before committing or rolling >> back my transaction. Did postgres handle this for me? How do I see if >> the transaction is still open? > > I'm reasonably sure

Re: [GENERAL] open transaction?

2008-12-29 Thread Raymond O'Donnell
On 29/12/2008 11:48, blackwater dev wrote: > Without thinking I closed by connection before committing or rolling > back my transaction. Did postgres handle this for me? How do I see if > the transaction is still open? I'm reasonably sure that the transaction will get rolled back if the connect

[GENERAL] open transaction?

2008-12-29 Thread blackwater dev
I just logged into postgres from the command line and did: begin: select blah; select blah; \q Without thinking I closed by connection before committing or rolling back my transaction. Did postgres handle this for me? How do I see if the transaction is still open? Thanks!

Re: [GENERAL] having two database clusters?

2008-12-29 Thread Grzegorz Jaśkiewicz
and in different PGDATA dirs. -- Sent via pgsql-general mailing list (pgsql-general@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-general