Re: [GENERAL] Newbie: PG8 and text file parsing

2005-02-18 Thread Tatsuo Ishii
> I need some advice.. I am new to PG8 - I am working on the project > that needs to load data daily to PostgreSQL from the text file.. the > text file is 40MB comma delimited file with row consisting of 20-30 > fields and couple thousands of rows.. > > so the data needs to be parsed and if the ro

Re: [GENERAL] Newbie: PG8 and text file parsing

2005-02-18 Thread Joshua D. Drake
On Fri, 2005-02-18 at 20:34 -0500, Paul R wrote: > I need some advice.. I am new to PG8 - I am working on the project > that needs to load data daily to PostgreSQL from the text file.. the > text file is 40MB comma delimited file with row consisting of 20-30 > fields and couple thousands of rows..

Re: [GENERAL] is there anyway to get the backends IP address from the

2005-02-18 Thread Steve Crawford
On Saturday 12 February 2005 4:09 pm, Bruce Momjian wrote: > Added to TODO: > > * Add IP address to pg_stat_activity I like it. How about IP and port to differentiate multiple connections from the same host? Will this support IPV6? Cheers, Steve ---(end of broadca

[GENERAL] Newbie: PG8 and text file parsing

2005-02-18 Thread Paul R
I need some advice.. I am new to PG8 - I am working on the project that needs to load data daily to PostgreSQL from the text file.. the text file is 40MB comma delimited file with row consisting of 20-30 fields and couple thousands of rows.. so the data needs to be parsed and if the row exists it

Re: [GENERAL] hung postmaster?

2005-02-18 Thread Ed L.
OK, it appears I can reproduce this bug in fairly short order. Below are gdb backtraces along with current snapshots from ps, netstat, and a snippet of the server log. This is no longer an urgent issue for me with the gcc 3.4.2 workaround available, but I do have a stalled test cluster postmaste

Re: [GENERAL] hung postmaster?

2005-02-18 Thread Ed L.
Here's the lsof output for the hung processes... $ lsof | egrep 'PID|28775|29080|26752' COMMANDPID USER FD TYPE DEVICE SIZE/OFF NODE NAME psql 26752 pg cwdDIR 64,0x9 204812677 /users/pg psql 26752 pg txtREG 64,0x6 242

Re: [GENERAL] PostgreSQL Replication

2005-02-18 Thread Dieter Schröder
Thank you for the links. Based on the resources and reviews I found online, Slony looks like the best solution. Am disappointed that these systems are not better reviewed online (it really helps with convincing management). We sold them on postgresql, but we need to sell them that the replication

Re: [GENERAL] I'm newbie

2005-02-18 Thread Mohsen Pahlevanzadeh
Dear Richard: 1.Thank you for reply 2.Dear Richard,I must write a Makefile for my client packge.But i don't know on pgsql's library & path of its include-files. Please guide me on writting a Makefile for a client packege with pgsql. Yours,Mohsen > Mohsen Pahlevanzadeh wrote: >> I know about Makefil

Re: [GENERAL] PostgreSQL scaleability question

2005-02-18 Thread Lonni J Friedman
On Fri, 18 Feb 2005 13:51:00 -0800, Wang, Mary Y <[EMAIL PROTECTED]> wrote: > > > Hi All, > > I have been using PostgreSQL for my project repository, because it is free > and easy to use. My manager is trying to decide if he should use a > commercial database such as Oracle or PostgreSQL f

Re: [GENERAL] PostgreSQL scaleability question

2005-02-18 Thread Scott Marlowe
On Fri, 2005-02-18 at 15:51, Wang, Mary Y wrote: > Hi All, > > I have been using PostgreSQL for my project repository, because it is > free and easy to use. My manager is trying to decide if he should use > a commercial database such as Oracle or PostgreSQL for a giant > information repository f

[GENERAL] PostgreSQL scaleability question

2005-02-18 Thread Wang, Mary Y
Title: Message Hi All,   I have been using PostgreSQL for my project repository, because it is free and easy to use.  My manager is trying to decide if he should use a commercial database such as Oracle or PostgreSQL for a giant information repository for the corporate.  He asked me what i

[GENERAL] PostgreSQL scaleability question

2005-02-18 Thread Wang, Mary Y
Title: Message Hi All,   I have been using PostgreSQL for my project repository, because it is free and easy to use.  My manager is trying to decide if he should use a commerical database such as Oracle or PostgreSQL for a gaint information repository for the corporate.  He asked me what is

Re: [GENERAL] PostgreSQL Replication

2005-02-18 Thread Christopher Browne
In an attempt to throw the authorities off his trail, [EMAIL PROTECTED] (John Sidney-Woollett) transmitted: > Try this for starters - it's a good introductory article > > http://www.onlamp.com/pub/a/onlamp/2004/11/18/slony.html > > Maybe someone else can provide other links. See also the URL belo

Re: [GENERAL] PGSQL 8.0.1 Win 2K Installation Problem

2005-02-18 Thread S.D.
Tom suggested: > You seem to have a miscompiled backend. Where did you get the > installer from? Maybe a bad download? I snagged the non-Japanese version from: http://www.postgresql.org/ftp/win32/ ___ No banners. No pop-ups. No kidding. Make My Way y

Re: [GENERAL] hung postmaster?

2005-02-18 Thread Ed L.
On Friday February 18 2005 11:01, Ed L. wrote: > it could be a problem with the > build since the 7.4.6 build that was hanging was built with > gcc 3.2.2, while the 7.4.6 builds on two other identical boxes > were built with gcc 3.4.2. So we shutdown all the 7.4.6 > clusters, rebuilt using gcc 3.4

Re: [GENERAL] PostgreSQL Replication

2005-02-18 Thread Dieter Schröder
On Fri, 18 Feb 2005 10:15:21 -0800, Joshua D. Drake <[EMAIL PROTECTED]> wrote: > > > The first three are all open source, the last one is not, but the source > > code is available to customers, and should the project be abandoned or > > the company go under it is promised to be released under an o

Re: [GENERAL] Error during restore

2005-02-18 Thread Tom Lane
Carlos Henrique Reimer <[EMAIL PROTECTED]> writes: > I´m trying to restore a client cluster in my Linux box but during the restore > the following error is reported: > ALTER USER "BENK" SET search_path TO '"BENK", public, pg_catalog'; > psql:dumpall7.4.6_0902:14: ERROR: schema ""BENK", public, p

Re: [GENERAL] Schema comparison tool

2005-02-18 Thread Robert Treat
Agreed, the EMS product really is a slick tool. On another front, somewhere on my todo list is to add database diffing abilities to phppgadmin. There's a multiple db connection patch floating around that looks like it will be a help; if I can clear my schedule up enough I might get back to th

Re: [GENERAL] Killing process through of a function

2005-02-18 Thread Michael Fuhr
On Fri, Feb 18, 2005 at 10:05:25AM -0200, alexandre::aldeia digital wrote: > IBM DB2 have functions that allow the DBA to disconnect some clients. > This is very usefull for database maintenance without giving a shell to him. As I mentioned, you could write a function in C, PL/Perl, etc., that s

Re: [GENERAL] PostgreSQL Replication

2005-02-18 Thread Joshua D. Drake
The first three are all open source, the last one is not, but the source code is available to customers, and should the project be abandoned or the company go under it is promised to be released under an open source license. Cost is $1,000. Just FYI: Not only is it promised :) It is stated in the

Re: [GENERAL] Debugging a postgresql server crash.

2005-02-18 Thread Tom Lane
Clemens Wehrmann <[EMAIL PROTECTED]> writes: > I am trying to debug a postgresql server crash and am out of my depth. I think you're doing pretty well, actually ... > Selecting works for records where offset < 129833, but is broken for the next > record. You mean offset < 129831, no? At least t

Re: [GENERAL] PGSQL 8.0.1 Win 2K Installation Problem

2005-02-18 Thread Tom Lane
"S.D." <[EMAIL PROTECTED]> writes: > I downloaded the native Windows 8.0.1 installer and sorted through the > various Windows permissions problems by running the Installer as an admin but > not creating a cluster. Then I log out and log back in as the limited > "postgres" user and run initdb.exe

Re: [GENERAL] hung postmaster?

2005-02-18 Thread Ed L.
On Wednesday February 16 2005 3:38, Martijn van Oosterhout wrote: > On Wed, Feb 16, 2005 at 11:41:35AM -0700, Ed L. wrote: > > Question: Am I doing all I can to avoid corruption with the > > following procedure to shutdown a 7.4.6 cluster with a hung > > postmaster? Suggestions? > > What is the s

[GENERAL] Error during restore

2005-02-18 Thread Carlos Henrique Reimer
Hi,   I´m trying to restore a client cluster in my Linux box but during the restore the following error is reported: __ DELETE 0CREATE USER '\set ON_ERROR_STOP 'true' PostgreSQL database cluster dump--\connect "template1"You are now conne

[GENERAL] PGSQL 8.0.1 Win 2K Installation Problem

2005-02-18 Thread S.D.
I downloaded the native Windows 8.0.1 installer and sorted through the various Windows permissions problems by running the Installer as an admin but not creating a cluster. Then I log out and log back in as the limited "postgres" user and run initdb.exe from the command line. Initdb creates the

Re: [GENERAL] PostgreSQL Replication

2005-02-18 Thread Scott Marlowe
On Fri, 2005-02-18 at 11:17, Dieter SchrÃder wrote: > On Fri, 18 Feb 2005 10:58:08 -0600, Scott Marlowe > <[EMAIL PROTECTED]> wrote: > > On Fri, 2005-02-18 at 10:40, Dieter SchrÃder wrote: > > > Hello all, > > > > > > I am currently migrating a few oracle servers to postgre sql and > > > management

[GENERAL] Debugging a postgresql server crash.

2005-02-18 Thread Clemens Wehrmann
I am trying to debug a postgresql server crash and am out of my depth. The server is sent a segmentation fault when accessing certain data. I've tracked down one such place (though there may be others). I'm wondering if its possible for a more experienced person to see from the below if I'm

Re: [GENERAL] Database locks

2005-02-18 Thread Tom Lane
Alex Turner <[EMAIL PROTECTED]> writes: > Is there any way to get the list of locks by transation id or some > other datum to indicate which was first, or to figure out which is the > lock that is holding everything else back? Perhaps get some stats on the rows with granted=f to see what seems to

Re: [GENERAL] PostgreSQL Replication

2005-02-18 Thread Dieter Schröder
On Fri, 18 Feb 2005 10:58:08 -0600, Scott Marlowe <[EMAIL PROTECTED]> wrote: > On Fri, 2005-02-18 at 10:40, Dieter Schröder wrote: > > Hello all, > > > > I am currently migrating a few oracle servers to postgre sql and > > management wants us to have replication. We have found information > > about

Re: [GENERAL] PostgreSQL Replication

2005-02-18 Thread John Sidney-Woollett
Try this for starters - it's a good introductory article http://www.onlamp.com/pub/a/onlamp/2004/11/18/slony.html Maybe someone else can provide other links. John Sidney-Woollett Dieter Schröder wrote: Hello all, I am currently migrating a few oracle servers to postgre sql and management wants us t

Re: [GENERAL] I'm newbie

2005-02-18 Thread Richard Huxton
Mohsen Pahlevanzadeh wrote: I know about Makefile,But i need to write a Makefile that i can communicate with pgsql & its library & header file from C++. I'm afraid I still don't understand what you mean. If you are looking for C++ libraries so you can access a PostgreSQL database, then you probab

Re: [GENERAL] PostgreSQL Replication

2005-02-18 Thread Scott Marlowe
On Fri, 2005-02-18 at 10:40, Dieter SchrÃder wrote: > Hello all, > > I am currently migrating a few oracle servers to postgre sql and > management wants us to have replication. We have found information > about the slony replicator with blog posts and articles. We have not > found any other replic

Re: [GENERAL] PostgreSQL Replication

2005-02-18 Thread Csaba Nagy
Dieter, Slony is the most active replication project and it looks like it is the most used lately, but if it is the best for you depends on what you need, as there's no "one size fits all" replication solution. If you want master-slave asynchronous replication with only one master and few possibly

[GENERAL] PostgreSQL Replication

2005-02-18 Thread Dieter Schröder
Hello all, I am currently migrating a few oracle servers to postgre sql and management wants us to have replication. We have found information about the slony replicator with blog posts and articles. We have not found any other replication systems reviewed, so it slony the best tool for the job?

Re: [GENERAL] db replication and errors

2005-02-18 Thread Richard Huxton
Benjamin wrote: Thanx for the pointers, Richard. If the async feature is used on the primary, shud we copy on the xlog and clog files onto the backup as well? What is the "async feature"? I meant fsync. I meant to ask, if FSYNC is enabled, is all pending data written onto the disk? Yes. Turn it

Re: [GENERAL] I'm newbie

2005-02-18 Thread Mohsen Pahlevanzadeh
I know about Makefile,But i need to write a Makefile that i can communicate with pgsql & its library & header file from C++. > Mohsen Pahlevanzadeh wrote: >> Dears, >> I'm writting a package which is pgsql-base under RH9. >> I need to a small Makefile for compiling my package. >> Please guide me..

[GENERAL] Database locks

2005-02-18 Thread Alex Turner
I'm having a bear of a time with an application where one thread seems to be keeping a lock on a table after it's supposed to release it. select count(*) from pg_locks gives: 6816 Is there any way to get the list of locks by transation id or some other datum to indicate which was first, or to fig

Re: [GENERAL] db replication and errors

2005-02-18 Thread Benjamin
Thanx for the pointers, Richard. If the async feature is used on the primary, shud we copy on the xlog and clog files onto the backup as well? What is the "async feature"? I meant fsync. I meant to ask, if FSYNC is enabled, is all pending data written onto the disk? As of now, we shut down pos

Re: [GENERAL] I'm newbie

2005-02-18 Thread Richard Huxton
Mohsen Pahlevanzadeh wrote: Dears, I'm writting a package which is pgsql-base under RH9. I need to a small Makefile for compiling my package. Please guide me Can you give more information about what you're trying to do? Do you need general Makefile help, or are you having problems linking to P

[GENERAL] offtopic: Problem initialize postgres DataSource for WebSphere App. Server 6

2005-02-18 Thread juleni
Hello, I have problem to configure postgers datasource for WebSphere Application Server 6 (WAS6) from admin console. 1.) I have configured new JDBC Provider for PostgreSQL as following: Name: Postgres JDBC Provider Class path: ${UNIVERSAL_JDBC_DRIVER_P

[GENERAL] I'm newbie

2005-02-18 Thread Mohsen Pahlevanzadeh
Dears, I'm writting a package which is pgsql-base under RH9. I need to a small Makefile for compiling my package. Please guide me ---(end of broadcast)--- TIP 5: Have you checked our extensive FAQ? http://www.postgresql.org/docs/f

Re: [GENERAL] Alternate DB location continued.

2005-02-18 Thread Marco Colombo
On Fri, 18 Feb 2005, Bob Hartung wrote: Hi again all. Here is the situation: Fedora Core 3 with all updates. PostgreSQL 8.0.1 installed - no tables to update. In /etc/profile I have declared: PGDATA=/pg_data PATH=$PATH:$PGDATA

Re: [GENERAL] Alternate DB location continued.

2005-02-18 Thread Tom Lane
Bob Hartung <[EMAIL PROTECTED]> writes: >Here is the situation: > Fedora Core 3 with all updates. > PostgreSQL 8.0.1 installed - no tables to update. > In /etc/profile I have declared: > PGDATA=/pg_data You're being bit by SELinux. Either take it out of enforce

Re: [GENERAL] quote_literal Simple question

2005-02-18 Thread Terry Lee Tucker
You should be able to use a CASE WHEN statement inside this expression and test for a null itemIdValue. If it is null the you can return ''NULL'' else, return itemIdValue. HTH On Friday 18 February 2005 09:07 am, David Gagnon saith: > Hi all, > > I did a stored procedure and ran into this sma

[GENERAL] quote_literal Simple question

2005-02-18 Thread David Gagnon
Hi all, I did a stored procedure and ran into this small problem. Here itemIdValue may be null and I would have expected quote_literal to returns null as a string or the value quoted. For now I think it returns a real null. This causes my function to crash. insertStatement:= ''INSERT INTO

Re: [GENERAL] db replication and errors

2005-02-18 Thread Richard Huxton
Benjamin wrote: Hello everyone, The scene : Currently, we r using, Postgresql v 7.3, on RedHat 9 machines. We provide a hot standby at all times for the Primary server. So, we have to maintain a duplicate of the entire database. The problem arises, when the standby boots. I wanted to know, whenev

[GENERAL] Alternate DB location continued.

2005-02-18 Thread Bob Hartung
Hi again all. Here is the situation: Fedora Core 3 with all updates. PostgreSQL 8.0.1 installed - no tables to update. In /etc/profile I have declared: PGDATA=/pg_data PATH=$PATH:$PGDATA export PGDATA export P

[GENERAL] recent buffer overruns in plpgsql

2005-02-18 Thread Roman Neuhauser
I have a few questions regarding (or related to) the recent SELECT INTO fixes in plpgsql. * There hasn't been an official announcement as far as I can tell. All I could find is a mention in David Fetter's Weekly News. Is the risk so low it doesn't warrant informing users? * What are the plans

Re: [GENERAL] Killing process through of a function

2005-02-18 Thread alexandre::aldeia digital
Hi Michael, The software was generated by a CASE tool (genexus) and it's does not permit any modification. IBM DB2 have functions that allow the DBA to disconnect some clients. This is very usefull for database maintenance without giving a shell to him. VACUUM FULL is other "application" thats

[GENERAL] db replication and errors

2005-02-18 Thread Benjamin
Hello everyone, The scene : Currently, we r using, Postgresql v 7.3, on RedHat 9 machines. We provide a hot standby at all times for the Primary server. So, we have to maintain a duplicate of the entire database. The problem arises, when the standby boots. I wanted to know, whenever the standby b

Re: [GENERAL] Checking of constraints via subqueries?

2005-02-18 Thread Wolfgang Drotschmann
Michael Fuhr wrote: On Thu, Feb 17, 2005 at 07:31:42PM +0100, Martijn van Oosterhout wrote: On Thu, Feb 17, 2005 at 11:03:58AM -0700, Michael Fuhr wrote: In experiments I've defined a domain's CHECK expression to call a function that makes queries. It worked in simple tests; I don't know if it'll