[GENERAL] Automatic auditing suggestion

2003-10-29 Thread Scott Chapman
In my further discussion with Andrew offline, we came up with a joint suggestion to have PostgreSQL do automatic auditing. This would be VERY NICE, imho. Any input? Scott wrote: > It seems like it would be nice if you could flip a toggle on a > table and have it automatically build audit entr

[GENERAL] Database design question: ugliness or referential integrity?

2003-10-29 Thread Paulo Jan
Hi all: Let's say I'm designing a database (Postgres 7.3) with a list of all email accounts in a certain server: CREATE TABLE emails ( clienteid INT4, direccion VARCHAR(512) PRIMARY KEY, login varchar(128) NOT NULL, password VARCHAR(128), dominio VARCHAR(256) ); The PHBs want to have a log of

Re: [GENERAL] Error size varchar

2003-10-29 Thread Tom Lane
"Edwin Quijada" <[EMAIL PROTECTED]> writes: > I got error about a length field varchar. I have a table with a field type > varchar(20) but if I try to set to this field more than 20 characters I got > error. > I did a function to control the length of data and put it on trigger but > when it ocu

Re: [GENERAL] dump schema schema only?

2003-10-29 Thread Rick Seeger
You can use -t to specify a table: % pg_dump -s database -t tablename -Rick -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Patrick Hatcher Sent: Wednesday, October 29, 2003 12:57 PM To: [EMAIL PROTECTED] Subject: [GENERAL] dump schema schema only? I

Re: [GENERAL] Error size varchar

2003-10-29 Thread Adam Kavan
At 05:06 PM 10/29/03 +, Edwin Quijada wrote: wHAT IS unconstrained varchar??? Define the column as just varchar. This allows a string of any length. Then have a trigger truncate it after it is inserted. --- Adam Kavan --- [EMAIL PROTECTED] ---(end of broadcast)-

Re: [GENERAL] Error size varchar

2003-10-29 Thread Edwin Quijada
wHAT IS unconstrained varchar??? *---* *-Edwin Quijada *-Developer DataBase *-JQ Microsistemas *-809-747-2787 * " Si deseas lograr cosas excepcionales debes de hacer cosas fuera de lo comun" *---

Re: 7.3.5 release (was: Re: [GENERAL] SELECT with row>32k hangs over

2003-10-29 Thread Marc G. Fournier
I'd say yes based on the SSL and pg_dump fixes that were back patched ... On Wed, 29 Oct 2003, Tom Lane wrote: > Jan Wieck <[EMAIL PROTECTED]> writes: > > Tom Lane wrote: > >> Yeah, I think we have accumulated enough changes in the 7.3 branch to > >> justify a 7.3.5, but I'm not sure when we'll

Re: [GENERAL] dump schema schema only?

2003-10-29 Thread Tom Lane
"Patrick Hatcher" <[EMAIL PROTECTED]> writes: > I have a development server where I, well, do my development. Occasionally, > I will create a new schema within an existing database that I would like to > use on my production machine. I know that doing a pg_dump -s > > somefile.sql will dump the

Re: [GENERAL] backup another server

2003-10-29 Thread Ron Jr
On Wed, 2003-10-29 at 11:46, Edwin Quijada wrote: > > Hi!! > I wanna take a whole database running in a box1 pg7.3.4 and moving to > another box2 with 7.3.4 too. > There is a fast way to do that?? > Which??/ oldserver:~ pg_dumpall foo.dmp && scp foo.dmp newserver:. oldserver:~ ssh newserver news

Re: [GENERAL] backup another server

2003-10-29 Thread scott.marlowe
On Wed, 29 Oct 2003, Edwin Quijada wrote: > > > > Hi!! > I wanna take a whole database running in a box1 pg7.3.4 and moving to > another box2 with 7.3.4 too. > There is a fast way to do that?? > Which??/ The way I do it is: pg_dumpall -h source_machine |psql -h dest_machine -

[GENERAL] dump schema schema only?

2003-10-29 Thread Patrick Hatcher
I have a development server where I, well, do my development. Occasionally, I will create a new schema within an existing database that I would like to use on my production machine. I know that doing a pg_dump -s > somefile.sql will dump the entire schema of the database, but is there a way to e

[GENERAL] Trigger delete

2003-10-29 Thread Edwin Quijada
What is that I have to return in a delete trigger?? return OLD or NEW _ Add MSN 8 Internet Software to your current Internet access and enjoy patented spam control and more. Get two months FREE! http://join.msn.com/?page=dep

[GENERAL] backup another server

2003-10-29 Thread Edwin Quijada
Hi!! I wanna take a whole database running in a box1 pg7.3.4 and moving to another box2 with 7.3.4 too. There is a fast way to do that?? Which??/ *---* *-Edwin Quijada *-Developer DataBase *-JQ Microsistemas *-809-747-2787 * " Si deseas logr

Re: [GENERAL] Performace question

2003-10-29 Thread Lada 'Ray' Lostak
>Firstly, have you run ANALYZE across the database? ANALYZE not, only EXPLAIN. And it looks pretty normal :( There is basically nothing interested in soo simple SQL. >Secondly, the queries that are varying so much, can you post the EXPLAIN >ANALYZE output so we can see what is actually going on.

Re: 7.3.5 release (was: Re: [GENERAL] SELECT with row>32k hangs over SSL-Connection)

2003-10-29 Thread Tom Lane
Jan Wieck <[EMAIL PROTECTED]> writes: > Tom Lane wrote: >> Yeah, I think we have accumulated enough changes in the 7.3 branch to >> justify a 7.3.5, but I'm not sure when we'll get around to it. > On 10/03/2003 Bruce was the only one responding to my question if the > namespace fix I had for PL/T

Re: [GENERAL] PG_RESTORE/DUMP Question

2003-10-29 Thread Shridhar Daithankar
Alex wrote: Hi, I have a test system that is setup the same as a production system and would like to frequently copy the database over. pg_dump takes a few hours and even sometimes hangs. Are there any reasons not to simply just copy the entire data directory over to the test system? I could n

[GENERAL] N Texas PostgreSQL Consultant Needed

2003-10-29 Thread Stuart Johnston
I am looking for an experienced DBA in the North Texas area who would be available for a brief (probably about a day) consultation on database design and optimization in PostgreSQL. Please contact me if interested, Stuart Johnston [EMAIL PROTECTED] ---(end of broadcast)-

[GENERAL] Error size varchar

2003-10-29 Thread Edwin Quijada
Hi!! I got error about a length field varchar. I have a table with a field type varchar(20) but if I try to set to this field more than 20 characters I got error. I did a function to control the length of data and put it on trigger but when it ocurrs I got the error anyway and the trigger no

Re: [GENERAL] Performace question

2003-10-29 Thread Martijn van Oosterhout
Firstly, have you run ANALYZE across the database? Secondly, the queries that are varying so much, can you post the EXPLAIN ANALYZE output so we can see what is actually going on. Note also that the query log can be very helpful in finding out if the delay is in the database or not. Hope this he

[GENERAL] PG_RESTORE/DUMP Question

2003-10-29 Thread Alex
Hi, I have a test system that is setup the same as a production system and would like to frequently copy the database over. pg_dump takes a few hours and even sometimes hangs. Are there any reasons not to simply just copy the entire data directory over to the test system? I could not find any p

Re: [GENERAL] PG_RESTORE/DUMP Question

2003-10-29 Thread Doug McNaught
Alex <[EMAIL PROTECTED]> writes: > Hi, > > I have a test system that is setup the same as a production system and > would like to frequently copy the database over. > pg_dump takes a few hours and even sometimes hangs. > > Are there any reasons not to simply just copy the entire data > directory

Re: [GENERAL] JDBC DatabaseMetaData problem

2003-10-29 Thread Fernando Nasser
Wrong list. Please post this to the [EMAIL PROTECTED] list. I am sure there are people there that can help you with this. Regards, Fernando Aleksey wrote: Hello, I have the following problem working with DatabaseMetaData. There is a database with table and attribute names in Russian. Databas

7.3.5 release (was: Re: [GENERAL] SELECT with row>32k hangs over SSL-Connection)

2003-10-29 Thread Jan Wieck
Tom Lane wrote: Bruno Wolff III <[EMAIL PROTECTED]> writes: I think that a 7.3.5 release should be done a bit after 7.4 is released, but my opinion doesn't count for much. Yeah, I think we have accumulated enough changes in the 7.3 branch to justify a 7.3.5, but I'm not sure when we'll get around t

[GENERAL] Performace question

2003-10-29 Thread Lada 'Ray' Lostak
Dear list, First of all I want to say sory, if my question was answered somewhere. Or if it is my fault. If so, please, give me link/hint. My own search fails :( I have experimence with MySql, MsSql and Oracle (and MS Access huch :) I am new to PgSql. We are running server - OpenBSD 2.9,

Re: [GENERAL] shared memory on OS X - 7.4beta4

2003-10-29 Thread Tom Lane
John DeSoi <[EMAIL PROTECTED]> writes: > What version of OS X are you running? I thought I replicated the > problem after upgrading to 10.2.8, but now I'm not certain I ran initdb > again (I may have just rebuilt beta 5). So possibly it could be a > difference between 10.2.6 and 10.2.8. If not,

Re: [GENERAL] Newbie-question

2003-10-29 Thread Andrew Ayers
Victor SpÄng Arthursson wrote: > Are presently converting from mysql to postgresql, and my first > newbiequestion is how to make all the rows in a result from a select > just "swosh" by? That is, I dont want to see them page for page; just to > scroll by so I can se the last line with the number

Re: [GENERAL] SCSI vs. IDE performance test

2003-10-29 Thread Martijn van Oosterhout
On Tue, Oct 28, 2003 at 01:04:27PM -0500, Greg Stark wrote: > If it runs out of spare blocks, then you're in trouble. And there's no warning > that you're running low on spare blocks in any particular region unless you > use special utilities to query the drive. Also if the failure is caused by > e