Re: [GENERAL] Log File Maintainance

2005-04-12 Thread Richard Huxton
Inpreet Singh wrote: Hello, I am working on live server where we have installed postgres database as our back end. But now the problem is due to continues work on postgres, size of log files has become problem for us. And the partition where our postgres exists is full. Postmaster is not working

[GENERAL] Question about Large Objects

2005-04-12 Thread Sergey Karin
Hi, all   As I understood PostgreSQL allows to store large objects 2GB size maximum. Are there any plans to increase or removing that limitation?   If no, are there any abilities to store 10-20GB raster data (aero foto image) in postgreSQL?   Thanks   Sergey Karin

[GENERAL] Connection closing

2005-04-12 Thread Clifton Zama
Hi What would cause a connection to automatically close within a java program.It gets to a point where I have an inner loop that calls a recursive method that creates resultsets.But I am closing all my result sets, so I do not know why the connection simply closes itself.Please help. Clifton Z

Re: [GENERAL] Loosing connection with the database

2005-04-12 Thread Poul Møller Hansen
This sort of thing has been seen to occur when multiple client-side threads try to use the same database connection without proper locking to ensure only one thread uses it at a time. See for example http://archives.postgresql.org/pgsql-hackers/2004-09/msg00104.php

Re: [GENERAL] Log File Maintainance

2005-04-12 Thread Oleg Bartunov
On Tue, 12 Apr 2005, Richard Huxton wrote: Inpreet Singh wrote: Hello, I am working on live server where we have installed postgres database as our back end. But now the problem is due to continues work on postgres, size of log files has become problem for us. And the partition where our postgres

Re: [GENERAL] Connection closing

2005-04-12 Thread Richard Huxton
Clifton Zama wrote: Hi What would cause a connection to automatically close within a java program.It gets to a point where I have an inner loop that calls a recursive method that creates resultsets.But I am closing all my result sets, so I do not know why the connection simply closes itself.Plea

Re: [GENERAL] PostgreSQL 8.0.2 Now Available

2005-04-12 Thread Michael Ben-Nes
I want to be 100% sure. Currently my server runing 8.0.1 and my HTTP server ( another computer ) runing php which compiled on PG 7.4.7 and its working great. I need to recompile all the clients on all the other servers ( php / psql ) including PHP ? THanks Marc G. Fournier wrote: For those alre

[GENERAL] serial type (text instead of integer) and duplicate keys

2005-04-12 Thread Carlos Costa
Hello all! There is an extrange error in my logfile: update articles set online='t' where id = 391 ; ERROR: duplicate key violates unique constraint "articles_pkey" (the error exists only with this id) I've checked (well, almost imposible) if there was more than one article with this id: sele

Re: [GENERAL] serial type (text instead of integer) and duplicate

2005-04-12 Thread Richard Huxton
Carlos Costa wrote: Hello all! There is an extrange error in my logfile: update articles set online='t' where id = 391 ; ERROR: duplicate key violates unique constraint "articles_pkey" (the error exists only with this id) I've checked (well, almost imposible) if there was more than one article wit

[GENERAL] Crystal reports 9 fails to recognise data on upgrade to 8.0.1

2005-04-12 Thread Kristina Magwood
Hi, We are updating from v7.3 to v8.0.1 as well as transferring the database to a new machine.  We use Crystal Reports 9 to access the data on a production basis.  Unfortunately, Crystal Reports 9 fails to recognise some of the data fields on the new database.  In particular, it does not recognise

Re: [GENERAL] serial type (text instead of integer) and duplicate keys

2005-04-12 Thread Carlos Costa
Thank you very much. Here is the output: SELECT oid,xmin,xmax,ctid,id FROM articles WHERE id=391; oid | xmin| xmax| ctid | id -+---+---+--+- 3032469 | 152691945 | 152886684 | (104,6) | 391 3032469 | 152886687 | 156995994 | (104,13) | 391

[GENERAL] Get Number of milliseconds for an intervall

2005-04-12 Thread Patrick . FICHE
Hi,   I would like to get the elapsed time in milliseconds between 2 dates... Does anyone have an idea of how to do it ?   Thanks Patrick --- Patrick Fiche email : [EMAIL PROTECTED] tél : 01 69 29 36 18

Re: [GENERAL] Loosing connection with the database

2005-04-12 Thread Kris Jurka
On Tue, 12 Apr 2005, [UTF-8] Poul Møller Hansen wrote: > I have rewritten the application so every client thread is opening a new > database connection, and yesterday it happened again. > --- > 2005-04-11 12:27:54 ERROR: invalid string enlargement request size > 1358954492 > 2005-04-11 12:27

Re: [GENERAL] PostgreSQL 8.0.2 Now Available

2005-04-12 Thread Robert Treat
No. Clients on other machines should work fine since nothing changed in the wire protocol. On Tuesday 12 April 2005 05:24, Michael Ben-Nes wrote: > I want to be 100% sure. > > Currently my server runing 8.0.1 and my HTTP server ( another computer ) > runing php which compiled on PG 7.4.7 and

[GENERAL] postgres 8 upgrade problem

2005-04-12 Thread Abdul-Wahid Paterson
Hi, I have just upgraded my (thank God test) database server to Postgres to 8.0.1 from 7.4.7. I do a stand dump, shutdown, upgrade, restore procedure. On the server i have 5 databases. All of them work fine except one where I can "select" fine but an not insert, update or delete!!! I get errors

Re: [GENERAL] Question about Large Objects

2005-04-12 Thread Tom Lane
"Sergey Karin" <[EMAIL PROTECTED]> writes: > As I understood PostgreSQL allows to store large objects 2GB size maximum. > Are there any plans to increase or removing that limitation? I don't think anyone's really thought about it. To do it without breaking backward compatibility, we'd have to inv

Re: [GENERAL] What are the consequences of a bad database design (never seen that before !)

2005-04-12 Thread Robert Treat
On Monday 11 April 2005 05:39, Jinane Haddad wrote: > Hi everyone, > > i just got a new job in a small entreprise and they are using postgres as a > database for their application. I was stupefied cause the database design > is so bad : we can even say it has been done by amateurs. I observed the >

Re: [GENERAL] serial type (text instead of integer) and duplicate keys

2005-04-12 Thread Tom Lane
Carlos Costa <[EMAIL PROTECTED]> writes: > SELECT oid,xmin,xmax,ctid,id FROM articles WHERE id=391; >oid | xmin| xmax| ctid | id > -+---+---+--+- > 3032469 | 152691945 | 152886684 | (104,6) | 391 > 3032469 | 152886687 | 156995994 | (104,1

Re: [GENERAL] Crystal reports 9 fails to recognise data on upgrade to 8.0.1

2005-04-12 Thread Jeff Eckermann
Looks like your ODBC settings might have changed in the switch. In particular, look at the " text as longvarchar" setting. If you cannot find a solution, try posting to the pgsql-odbc list. "Kristina Magwood" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Hi, > We are updating f

[GENERAL] client interfaces

2005-04-12 Thread David Parker
Is there anything like a client library for postgres that does not use tcp/ip as the protocol? As part of the performance tuning of our application, the question was posed to me whether there was a more "direct" sort of API that would not require going through the tcp/ip stack. I assume the

Re: [GENERAL] Unique constraint violation on serial column

2005-04-12 Thread Bill Chandler
I'm sorry, was working on little sleep yesterday. You are right, the table was created with the columns in the following order: d1, obj_id, d2, val, correction, delta, evt_id The insert command looks something like: INSERT INTO EVENT_TBL VALUES(1039850293991, 145, 1039110343000, '10.25', 1, 739

Re: [GENERAL] client interfaces

2005-04-12 Thread Tom Lane
"David Parker" <[EMAIL PROTECTED]> writes: > Is there anything like a client library for postgres that does not use > tcp/ip as the protocol? Local connections generally go through Unix sockets, which is not the tcp stack. regards, tom lane ---(end

Re: [GENERAL] client interfaces

2005-04-12 Thread Michael Fuhr
On Tue, Apr 12, 2005 at 10:51:09AM -0400, David Parker wrote: > > Is there anything like a client library for postgres that does not use > tcp/ip as the protocol? As part of the performance tuning of our > application, the question was posed to me whether there was a more > "direct" sort of API tha

Re: [GENERAL] Get Number of milliseconds for an intervall

2005-04-12 Thread FERREIRA William (COFRAMI)
in which language ? -Message d'origine-De : [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]Envoyé : mardi 12 avril 2005 15:25À : pgsql-general@postgresql.orgObjet : [GENERAL] Get Number of milliseconds for an intervall Hi,   I would like to get the elapsed time in mi

Re: [GENERAL] Get Number of milliseconds for an intervall

2005-04-12 Thread Patrick . FICHE
Sorry, I forgot to say in PL/pgSQL   --- Patrick Fiche email : [EMAIL PROTECTED] tél : 01 69 29 36 18 --- -

Re: [GENERAL] Unique constraint violation on serial column

2005-04-12 Thread Alvaro Herrera
On Tue, Apr 12, 2005 at 07:59:55AM -0700, Bill Chandler wrote: > I'm sorry, was working on little sleep yesterday. You > are right, the table was created with the columns in > the following order: > > d1, obj_id, d2, val, correction, delta, evt_id > > The insert command looks something like: >

Re: [GENERAL] Unique constraint violation on serial column

2005-04-12 Thread Bill Chandler
I was able to get a pg_dump of the table in question. It has 23040 rows in it. evt_id column ranges from 1 to 23040. I used the dump to create a new database. All inserts fail with same error (unique constraint violation). However, I am wondering if this is just the result of the fact that

Re: [GENERAL] Unique constraint violation on serial column

2005-04-12 Thread Alvaro Herrera
On Tue, Apr 12, 2005 at 08:48:15AM -0700, Bill Chandler wrote: > How does one find out the current sequence value? Is > there a way to change it? Using the function setval() you can change it. SELECT * from sequencename to find out. -- Alvaro Herrera (<[EMAIL PROTECTED]>) "Si quieres ser crea

Re: [GENERAL] Unique constraint violation on serial column

2005-04-12 Thread Bill Chandler
I did not intend to put explicit values in the 'evt_id' column. I thought the six values in the insert command correspond to the 1st six columns in the create table command, namely d1, obj_id, d2, val, correction and delta and 'evt_id' is set to the nextval() automagically. Is that not correct?

Re: [GENERAL] Unique constraint violation on serial column

2005-04-12 Thread Alvaro Herrera
On Tue, Apr 12, 2005 at 08:58:41AM -0700, Bill Chandler wrote: > I did not intend to put explicit values in the > 'evt_id' column. I thought the six values in the > insert command correspond to the 1st six columns in > the create table command, namely d1, obj_id, d2, val, > correction and delta an

Re: [GENERAL] Unique constraint violation on serial column

2005-04-12 Thread Bill Chandler
All, In the pg_dump output is the command: COPY event_tbl (d1, ..., evt_id) FROM stdin; followed by all the data for the table. There are 23040 rows. The last value for evt_id is 23040. So far so good. Then the last statement in the pg_dump output is: SELECT pg_catalog.setval('event_tbl_evt

[GENERAL] Suitable Database version

2005-04-12 Thread Santharam
Hi All,         I am recently planning to use PostgreSQL to be my backend for my Java web based application in JBoss application server. This is to be moved to the production environment. I don't want to change the postgresql version for next few years. So, I want a stable version of postgre

Re: [GENERAL] Encoding Issue with UNICODE

2005-04-12 Thread Fritz Bayer
[EMAIL PROTECTED] ("Magnus Naeslund(t)") wrote in message news:<[EMAIL PROTECTED]>... > Fritz Bayer wrote: > > Hello, > > > > I`m using postgresql 7.2.1. According to the following lines data in > > my database gets encoded as unicode. Server and client communication > > seems to use unicode as w

Re: [GENERAL] Asyncron replication from wan to lan with PostgreSQL 8

2005-04-12 Thread None
Hi, I have used Daffodil replicator in a similar situation earlier. It is necessary that master and slave database should be exposed to each other. The problem might have occurred due to deployment of firewall in the network that is preventing the connection to establish. The solution could be

[GENERAL] Please help to speed up UPDATE statement

2005-04-12 Thread Andrus
The following statement runs VERY slowly on large tables. Any idea how to speed it up ? UPDATE rid SET dokumnr=NULL WHERE dokumnr NOT IN (SELECT dokumnr FROM dok); Tables: CREATE TABLE dok ( dokumnr INTEGER, CONSTRAINT dok_pkey PRIMARY KEY (dokumnr) ); CREATE TABLE rid ( dokumnr

Re: [GENERAL] Encoding Issue with UNICODE

2005-04-12 Thread Fritz Bayer
[EMAIL PROTECTED] ("Daniel Verite") wrote in message news:<[EMAIL PROTECTED]>... > Fritz Bayer wrote: > > > I have a java program, which writes words containing german umlauts > > like äöü into the database. As you probably know, those characters > > belong to the ISO-8859-1 character encoding set

Re: [GENERAL] Suitable Database version

2005-04-12 Thread Scott Marlowe
On Tue, 2005-04-12 at 12:27, Santharam wrote: > Hi All, > I am recently planning to use PostgreSQL to be my backend for > my Java web based application in JBoss application server. This is to > be moved to the production environment. I don't want to change the > postgresql version for next

Re: [GENERAL] Encoding Issue with UNICODE

2005-04-12 Thread John DeSoi
On Apr 12, 2005, at 6:39 AM, Fritz Bayer wrote: But in which encoding? I guess utf8 or utf16... But why doesn that fail only for äüö? Shouldn't any other letter encoded in utf16 also fail? I mean unicode itself is 16 bit long. So "münchen" should expand to 14 characters. But only ü expands to two c

[GENERAL] generating a parent/child relationship in a trigger

2005-04-12 Thread Mark Harrison
Suppose I'm adding row to a table, and one of the columns is a pathname. I would like to generate in a separate table parent/child relationships based on the path. For example, adding "/foo/bar/baz" and "/foo/bar/bot" would generate the following relationships parent child -- - /f

Re: [GENERAL] Please help to speed up UPDATE statement

2005-04-12 Thread Bob Henkel
On Apr 12, 2005 9:40 AM, Andrus <[EMAIL PROTECTED]> wrote: The following statement runs VERY slowly on large tables.Any idea how to speed it up ?UPDATE rid SET dokumnr=NULL WHERE  dokumnr NOT IN (SELECT dokumnr FROM dok);Tables:CREATE TABLE dok ( dokumnr INTEGER,   CONSTRAINT dok_pkey PRIM

Re: [GENERAL] pg 8.0.1-r3 killls pgadmin3 and phppgadmin

2005-04-12 Thread PFC
Sometimes life has an irony of itself. Today I modified some of my gentoo USE flags for something totally unrelated to postgres. Tonight I built postgres in debug mode : the offending query worked. I thught "hm." I rebuilt it without debug, and it still works. I don't know what made it NOT

Re: [GENERAL] pg 8.0.1-r3 killls pgadmin3 and phppgadmin

2005-04-12 Thread PFC
pgadmin3 does this (from pg's log with level set at debug5): INSTRUCTION : SELECT db.oid, datname, datpath, datallowconn, datconfig, datacl, pg_encoding_to_char(encoding) AS serverencoding, pg_get_userbyid(datdba) AS datowner,has_database_privilege(db.oid, 'CREATE') as cancreate

Re: [GENERAL] pg 8.0.1-r3 killls pgadmin3 and phppgadmin

2005-04-12 Thread Tom Lane
PFC <[EMAIL PROTECTED]> writes: > ERREUR: 42703: la colonne <> n'existe pas > EMPLACEMENT : transformColumnRef, parse_expr.c:1099 > Do you know if this is normal, should this column exist, is it a > problem > with pgadmin ? You need a newer pgadmin --- pg_database.datpath went away in

Re: [GENERAL] pg 8.0.1-r3 killls pgadmin3 and phppgadmin

2005-04-12 Thread PFC
You need a newer pgadmin --- pg_database.datpath went away in 8.0. I'm installing the new version. Thanks. ---(end of broadcast)--- TIP 8: explain analyze is your friend

Re: [GENERAL] client interfaces

2005-04-12 Thread Bruno Wolff III
On Tue, Apr 12, 2005 at 10:51:09 -0400, David Parker <[EMAIL PROTECTED]> wrote: > Is there anything like a client library for postgres that does not use > tcp/ip as the protocol? As part of the performance tuning of our > application, the question was posed to me whether there was a more > "direc

[GENERAL] Composite type versus Domain constraints.

2005-04-12 Thread James Robinson
I'm trying to experiment with domains and composite types under 8.0.2. It seems that domain constraints don't fire when the domain is embedded within a composite type: --- create domain simple as smallint default 0 constraint limits check (VALUE IN (0,1,2,3)); create type comp_simple as ( simp_

Re: [GENERAL] Composite type versus Domain constraints.

2005-04-12 Thread Tom Lane
James Robinson <[EMAIL PROTECTED]> writes: > insert into simple_table values (null, '(43)'); -- GRR works!!! It'll > let any smallint in. What happened to the constraint? The composite-type input routine doesn't check any constraints ... and that includes domains. You can make it work if you don

[GENERAL] psql vs perl prepared inserts

2005-04-12 Thread Matt Van Mater
I've been experimenting with loading a large amount of data into a fairly simple database using both psql and perl prepared statements. Unfortunately I'm seeing no appreciable differences between the two methods, where I was under the impression that prepared statements should be much faster (in m

Re: [GENERAL] psql vs perl prepared inserts

2005-04-12 Thread Tom Lane
Matt Van Mater <[EMAIL PROTECTED]> writes: > I've been experimenting with loading a large amount of data into a > fairly simple database using both psql and perl prepared statements. > Unfortunately I'm seeing no appreciable differences between the two > methods, where I was under the impression t

Re: [GENERAL] What are the consequences of a bad database design

2005-04-12 Thread Paul Tillotson
But the people i am working with are not considering the restructuring of the database. They are even thinking of expanding it by adding new modules. Please can someone advise me, or tell me what to do, what may be the consequences My advice is to not go to them with the "we need to totally r

[GENERAL] unsubscribe

2005-04-12 Thread Arcane_Rhino
---(end of broadcast)--- TIP 6: Have you searched our list archives? http://archives.postgresql.org

[GENERAL] PostGreSQL (7.3?) recovery, Mac OS X (10.3.8)

2005-04-12 Thread Eric D. Nielsen
After an extended vacation from development activities on my computer, I tried to get back to work, but the PostGreSQL backend was no longer running. (Normally its part of my startup scripts.) I tried su'ing over to postgres and running pg_ctl start. No luck, seems like it lost the path. Typ

Re: [GENERAL] PostGreSQL (7.3?) recovery, Mac OS X (10.3.8)

2005-04-12 Thread Alvaro Herrera
On Tue, Apr 12, 2005 at 08:30:39PM -0400, Eric D. Nielsen wrote: > LOG: ReadRecord: unexpected pageaddr 0/364000 in log file 0, segment > 2, offset 3555328 > LOG: redo is not required > PANIC: XLogWrite: write request 0/2364000 is past end of log 0/2364000 > LOG: startup process (pid 784) was

Re: [GENERAL] PostGreSQL (7.3?) recovery, Mac OS X (10.3.8)

2005-04-12 Thread Tom Lane
"Eric D. Nielsen" <[EMAIL PROTECTED]> writes: > PANIC: XLogWrite: write request 0/2364000 is past end of log 0/2364000 This is a known corner-case bug in some 7.3 releases. If you care about getting the data out of it, you can update-in-place to the latest 7.3 release. If not, well, 7.3 was a l

Re: [GENERAL] PostGreSQL (7.3?) recovery, Mac OS X (10.3.8)

2005-04-12 Thread Tom Lane
Alvaro Herrera <[EMAIL PROTECTED]> writes: > What version is this exactly? IIRC there was a version of 7.3 that > would refuse to start if the last XLog record fell at the edge of a > segment. I may be misremembering though (i.e. maybe it was one of the > 7.4 series), plus I can't find the releva

Re: [GENERAL] What are the consequences of a bad database design (never seen

2005-04-12 Thread Jinane Haddad
Thanx guys for the advices. i think i will have to find some "POLITICAL" approach in order to restructure the existing database, which i am not so good at but worse trying. Note that even the code is Bad (they are using PHP for a big application - no object oriented design - a lot of code redund