[GENERAL] unsubscribe

2005-04-11 Thread Rafael . Hernamperez
Rafael Hernampérez Martín Arquitecto de Bases de Datos Tecnología, Soluciones e Integración BULL España, S.A. Po. de las Doce Estrellas, 2 - 28042 Madrid Tel. 91 393 93 48 - Fax 91 393 93 22 e-mail: [EMAIL PROTECTED]

Re: [GENERAL] Unique constraint violation on serial column

2005-04-11 Thread Ragnar Hafstað
On Mon, 2005-04-11 at 11:03 -0700, Bill Chandler wrote: > ERROR: duplicate key violates unique constraint > event_tbl_evt_id_key > EVENT_TBL > evt_id bigserial, unique > d1 numeric(13) > obj_id numeric(6) > d2 numeric(13) > val varchar(22) > correction n

Re: [GENERAL] oracle script to postgresql

2005-04-11 Thread Guy Rouillier
FERREIRA William (COFRAMI) wrote: > hi, > > i'm trying to port an oracle script to postgresql, but i don't find > any alternative for some problems this is an extract of the oracle > script : > > DEFINE MDNSImportBlobDirectory = > C:\Temp\_lm_\ExternalTablesSpace\mdns; > @createFraweWorkTables_s

Re: [GENERAL] error with vacuumdb

2005-04-11 Thread Thomas F . O'Connell
You'll need to post the actual error to the list to have any hope of receiving good help. -tfo -- Thomas F. O'Connell Co-Founder, Information Architect Sitening, LLC Strategic Open Source: Open Your i™ http://www.sitening.com/ 110 30th Avenue North, Suite 6 Nashville, TN 37203-6320 615-260-0005 O

Re: [GENERAL] Unique constraint violation on serial column

2005-04-11 Thread Bill Chandler
Tom, This is not the EXACT command (don't have that since this a client site and they did not have logging turned on) but the insert command would have looked something like: INSERT INTO EVENT_TBL VALUES(1039850293991, 'X.Y.Z', 1039110343000, '10.25', 1, 739950991) For what its worth, the comman

[GENERAL] pg_restore -d password athentication failed

2005-04-11 Thread Kristina Magwood
Hi, I are trying to upgrade from Postgresql v7.3 Cygwin environment  to 8.0.1 on a plain Windows environment.  So, far, I can get most of the data transferred, but I cannot get the large objects.  Perusing the net, I got a hint that I must use the -d dbname with the pg_restore utility.  Unfortunat

Re: [GENERAL] Unique constraint violation on serial column

2005-04-11 Thread Tom Lane
Bill Chandler <[EMAIL PROTECTED]> writes: > Client is getting the following error when attempting > to do an insert on a table: > ERROR: duplicate key violates unique constraint > event_tbl_evt_id_key What's the exact query (or queries) causing this? Do you have any triggers or rules that might

[GENERAL] Log File Maintainance

2005-04-11 Thread Inpreet Singh
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 now. I tried

[GENERAL] Unique constraint violation on serial column

2005-04-11 Thread Bill Chandler
Hello, Client is getting the following error when attempting to do an insert on a table: ERROR: duplicate key violates unique constraint event_tbl_evt_id_key Client is using PostgreSQL 7.4.2 on Sparcv9 running Solaris. We have the following tables: EVENT_TBL evt_id bigserial, unique d1

Re: [GENERAL] Encoding Issue with UNICODE

2005-04-11 Thread Magnus Naeslund(t)
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 well: woody=# select version(); version --- Postgre

[GENERAL] unsubscribe

2005-04-11 Thread Jim Strickland
-- James Strickland - MCP IT Manager American Roamer 901-377-8585 http://www.americanroamer.com ---(end of broadcast)--- TIP 3: if posting/reading through Usenet, please send an appropriate subscribe-nomail command to [EMAIL PROTECTED] so that yo

Re: [GENERAL] Data Mart with PostgreSQL (Please!)

2005-04-11 Thread Richard Huxton
Renato Cramer wrote: My objective is design and build a Data Mart what enable OLAP queries using Open Source tools. I will want know if the solution below is possible and correct or exist a better solution: 1 - The data will be generate to PostgreSQL from a commercial Database by a ETL process. 2 -

[GENERAL] large object table space in version 8

2005-04-11 Thread John Liu
Does large object table space is associated with the table (with oid)'s table space created? If not, what's about table with bytea column? Thanks. johnl ---(end of broadcast)--- TIP 2: you can get off all lists at once with the unregister command

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

2005-04-11 Thread Tom Lane
PFC <[EMAIL PROTECTED]> writes: > I have no idea what to type in gbd to get the trace, though What I usually do is - start a psql session - in another window, find out the PID of the backend attached to the psql session, and do $ gdb /path/to/postgres backend_PID ...

[GENERAL] Data Mart with PostgreSQL (Please!)

2005-04-11 Thread Renato Cramer
> Hello, > > My objective is design and build a Data Mart what enable OLAP queries > using Open Source tools. > > I will want know if the solution below is possible and correct or exist a > better solution: > > 1 - The data will be generate to PostgreSQL from a commercial Database by > a ETL pro

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

2005-04-11 Thread PFC
If you want, you can try building with --enable-debug and getting a gdb traceback from the call to errfinish(). That would at least give us some clue where in the rule text it's getting confused. Is this : ./configure --enable-debug ? I have no idea what to type in gbd to get

[GENERAL] oracle script to postgresql

2005-04-11 Thread FERREIRA William (COFRAMI)
Title: Convert Cursor to array hi,   i'm trying to port an oracle script to postgresql, but i don't find any alternative for some problems this is an extract of the oracle script : DEFINE MDNSImportBlobDirectory = C:\Temp\_lm_\ExternalTablesSpace\mdns;@createFraweWorkTables_script.ddl;@creat

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

2005-04-11 Thread Tom Lane
PFC <[EMAIL PROTECTED]> writes: >> You might try comparing the results of >> select ev_action from pg_rewrite where ev_class = 'pg_user'::regclass; >> from the two builds. > I'll spare your eyes and tell you right away that the results are > identical... they're at the bottom of the email.

Re: [GENERAL] Time and date functions give me headaches!!

2005-04-11 Thread Scott Marlowe
On Mon, 2005-04-11 at 04:40, Costin Manda wrote: > Hello, > > I have a table with columns defines as varchar that have values in format > '-MM-DD HH:MM:SS'. > > Now, if I do a > select timestamp '2005-10-10 10:10:10'; > I get the value just fine. I can use abstime()::integer on the result t

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

2005-04-11 Thread PFC
You might try comparing the results of select ev_action from pg_rewrite where ev_class = 'pg_user'::regclass; from the two builds. regards, tom lane Well... I'll spare your eyes and tell you right away that the results are identical... they're at the bottom of the

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

2005-04-11 Thread Scott Marlowe
On Mon, 2005-04-11 at 04: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] What are the consequences of a bad database design

2005-04-11 Thread David Fetter
On Mon, Apr 11, 2005 at 01:00:43PM +0300, Costin Manda wrote: > > 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 > >

Re: [GENERAL] Inserting a record data type into a table

2005-04-11 Thread Tom Lane
Graeme Hinchliffe <[EMAIL PROTECTED]> writes: > what I would like to be able to do is simply > INSERT INTO newtable VALUES (NEW); In 8.0 it works to spell it "new.*". regression=# create table z1 (f1 int, f2 text); CREATE TABLE regression=# create table z2 (f1 int, f2 text); CREATE TABLE regressi

Re: [GENERAL] Time and date functions give me headaches!!

2005-04-11 Thread Tom Lane
"Costin Manda" <[EMAIL PROTECTED]> writes: > select setuptime::timestamp from billing; - error (cannot cast type > character varying to timestamp without timezone!?) It works for me in 8.0. In some releases you need to cast to text first, for example in 7.4: regression=# select '2005-10-10 10:10

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

2005-04-11 Thread Tom Lane
PFC <[EMAIL PROTECTED]> writes: >> Hmm; the only occurrence of that string in the sources is in >> nodes/read.c, which AFAIK would never be invoked for a query entered >> straight from the client. What could trigger it would be trying to >> read a rule that is misformatted for some reason. Maybe

[GENERAL] Inserting a record data type into a table

2005-04-11 Thread Graeme Hinchliffe
Hiya Is it possible to insert a record data type into a table, or am I going to have to refer to each attribute individually in an insert? what I would like to be able to do is simply INSERT INTO newtable VALUES (NEW); and have the whole NEW record in a trigger inserted into the new tabl

Re: [GENERAL] bytea vs large object in version 8

2005-04-11 Thread Weiping
I think bytea is a little bit slower then large object. Regards Laser If speed (add/get) is the only concern, image files could be big (~10M), and database only serves as storage. In the postgresql 8, which type (bytea vs large object) is the preferred one? Is it true, in general, that bytea insert

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

2005-04-11 Thread tony
Le lundi 11 avril 2005 à 09:39 +, Jinane Haddad a écrit : > 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. > But the people i

Re: [GENERAL] Simple UPDATE runs forever

2005-04-11 Thread Alban Hertroys
Andrus Moor wrote: The command UPDATE dok SET krdokumnr=NULL WHERE krdokumnr NOT in (select dokumnr from dok); That's a rather dangerous query; I'm pretty sure it updates a lot more than you think. There is a long standing "bug" in the SQL standard where NOT IN (..., ..., NULL) always evaluates

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

2005-04-11 Thread Martijn van Oosterhout
On Mon, Apr 11, 2005 at 09:39:13AM +, Jinane Haddad wrote: > My question is with such database, what are the lomg term consequences or > can we determinate them. I know that the querys will become slower, and the > database will grow more quickly ... And a lot of information will not be > tr

Re: [GENERAL] Time and date functions give me headaches!!

2005-04-11 Thread Csaba Nagy
Costin, You could probably use one of the functions listed here: file:///usr/share/doc/postgresql-7.4.2/html/functions-formatting.html If you want the varchar -> date conversion to happen automatically, you should study this chapter: file:///usr/share/doc/postgresql-7.4.2/html/typeconv.html HTH,

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

2005-04-11 Thread Sebastian Hennebrueder
Hello, I am trying to find a solution for the following case: replicate the database from a web application on our Internetserver (master) to a local database (slave) in our LAN with a local IP address. We want to replicate only a few tables creates specially for reports. - the master cannot co

Re: [GENERAL] [SQL] Problems with Set Returning Functions (SRFs)

2005-04-11 Thread Sean Davis
On Apr 6, 2005, at 2:53 PM, Otto Blomqvist wrote: secom=# select f1, f2, f3 from testpassbyval(1, (Select number1 from test)); ERROR: more than one row returned by a subquery used as an expression This is where I fail. Am I even on the right path here ? Writing the actual parsing function will

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

2005-04-11 Thread Costin Manda
> 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 I have been working with databases for web scripts (P

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

2005-04-11 Thread Rafael . Hernamperez
I suggest you make a report identifying these critical points, the current consequences (use, maintenance, performance, resources (hardware, time, etc.)), and a study of the future. Also, expose the benefits of a good design for the future (including the costs of the migration). Regards, Ra

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

2005-04-11 Thread Jinane Haddad
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 following problems till now: 1- redondancy ( TOO MUCH) 2- M

[GENERAL] Time and date functions give me headaches!!

2005-04-11 Thread Costin Manda
Hello, I have a table with columns defines as varchar that have values in format '-MM-DD HH:MM:SS'. Now, if I do a select timestamp '2005-10-10 10:10:10'; I get the value just fine. I can use abstime()::integer on the result to find the unix timestamp. (This is the simplest way I could find

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

2005-04-11 Thread PFC
Hmm; the only occurrence of that string in the sources is in nodes/read.c, which AFAIK would never be invoked for a query entered straight from the client. What could trigger it would be trying to read a rule that is misformatted for some reason. Maybe you have a damaged pg_user view definition

Re: [GENERAL] PostgreSQL 8.0.2 Now Available

2005-04-11 Thread Magnus Hagander
> For a full list of bugs fixed in this version, please see the > HISTORY file, which can be found at: > > http://www.postgresql.org/ftp/source/v8.0.2/HISTORY This link should be: http://wwwmaster.postgresql.org/download/mirrors-ftp?file=source%2Fv8.0. 2%2FHISTORY or simply http://www.po

Re: [GENERAL] Download problem - none of the ftp mirrors work

2005-04-11 Thread Richard Huxton
Eylem Koksal wrote: I'm trying to download v8.0 for fedora core 3. But the last page i see is : Choose a download mirror Downloading: /binary/v8.0/linux/rpms/fedora/fedora-core-3/postgresql-server-8.0.0-1PGDG.i686.rpm None of the mirrors work. The message at the status bar says "Connecting to rem