Re: [GENERAL] error while loading shared libraries: libpq.so.3

2005-02-20 Thread Michael Fuhr
On Mon, Feb 21, 2005 at 12:47:58PM +0530, Surabhi Ahuja wrote: > cc -I/usr/local/pgsql/includesample.c -L/usr/local/pgsql/lib -lpq -o > sample > I then run itand it gives and error > [indra:/homes/surabi] ./sample > ./sample: error while loading shared libraries: libpq.so.3: cannot open

[GENERAL] error while loading shared libraries: libpq.so.3

2005-02-20 Thread Surabhi Ahuja
 i have written a program sample.cit is as folllows: #include#include int main(){    PGconn *myconnection = PQconnectdb("");    printf("Hi");    return 0;} I then compile this program using makefile make samplecc -I/usr/local/pgsql/include    sample.c  -L/usr/local/pgsql/lib -l

pgsql-general@postgresql.org

2005-02-20 Thread Markus Wollny
Hello! Finally the time has come for us to upgrade our PostgreSQL 7.4.5-servers to 8.0.1 - and though I'm very much looking forward to some of the new features, the dump&reload process is worrying me a bit this time. I've got one cluster in particular which is roughly 9GB in size and features s

Re: [GENERAL] 7.4.6 FC2 MUCH slower from 2.6.9-1.11 to 2.6.10-1.8

2005-02-20 Thread Clodoaldo Pinto
I made the same experience now with PG 8.01, FC3 and 512MB memory. The previous was PG 7.4.6, FC2 and 1GB. The difference in performance between kernels 2.6.9-1.724 and 2.6.10-1.766 is still huge. I notice that in 2.6.10 the function accesses the disk much more. Does anyone know what changes fro

[GENERAL] error handling codes

2005-02-20 Thread Sim Zacks
PostGresQL 8 beta1. PGAdmin III beta 1.21 Is there a way to see what error code or error message occured when an error happens? I am trying to perform exception handling and a create view that included another view that did not exist occured in a plpgsql function. I finally figured out that the er

Re: [GENERAL] hung postmaster?

2005-02-20 Thread Edmund Bacon
[EMAIL PROTECTED] ("Ed L.") writes: > > Workin' on gdb/strace build, but having trouble with both. Gdb > just doesn't build from source, not sure why yet, and no depots > found at porting center. It doesn't appear that strace is > supported for 11.23 itanium based on strace README/PORTING fi

[GENERAL] Method of building views

2005-02-20 Thread Richard Crawley
Hello everyone. I am a recent convert from quite an old version of MySQL. I have an ancient business app/database that I dump into MySQL overnight, then run a whole set of queries on to form tables that users then query using Excel DSN. Up to now, because MySQL didn't have subqueries, these routi

Re: [GENERAL] Group By and wildcards...

2005-02-20 Thread Sim Zacks
Even if the function did a select from d, it could still have plenty of duplicates. To remove that possibility you would have to use the distinct clause which is also generally less efficient then a group by. "Bruno Wolff III" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > On Sat, F

[GENERAL] Change view with dependencies function

2005-02-20 Thread Sim Zacks
The core part of the code was posted by Tom Lane. It would have taken me a lot longer without that push. One of the most frustrating things, IMHO, about PostGreSQL is the fact that when I wanted to change a view, even slightly by adding a new column, I would have to first drop it along with all th

[GENERAL] change user password

2005-02-20 Thread Hugo
hi, is it possible to change the user's password from a stored procedure or a funcion? I mean , is there a system function/stored procedure that can do it? like the dbo.sp_password found in Adaptive server anywhare? thanks in advance Hugo ---(end of broadcast)---

Re: [GENERAL] Schema comparison tool

2005-02-20 Thread Martin Boese
There is a program called pgdiff.. but I could not really make it work and it seems to be quiet old and unmaintained: http://pgdiff.sourceforge.net/ Martin ---(end of broadcast)--- TIP 5: Have you checked our extensive FAQ? http://w

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

2005-02-20 Thread Sim Zacks
You can always do an insert and add a trigger that checks the key for existence. If it exists do the update instead. That way you have one line of code doing both inserts and updates. The only problem with it is that it looks confusing from an outsiders perspective, so it would have to be document

Re: [GENERAL] [postgis-users] postgresql8.0 and postgis1.0.0

2005-02-20 Thread strk
On Wed, Feb 16, 2005 at 06:16:36PM -0700, Pritesh Shah wrote: > hi, > > I would like to thank everybody for their responses to my question. I > tried a couple of things and the best thing for me was to use > utils/postgis_restore.pl script. > > I ran this script on some sample databases and they

Re: [GENERAL] pg_depend query

2005-02-20 Thread Sim Zacks
Thanks Tom, It took me the better part of the day but I banged out a fully working function. Sim "Tom Lane" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > "Sim Zacks" <[EMAIL PROTECTED]> writes: > > I am trying to write a query on the pg_depend table and it is confusing the > > he

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

2005-02-20 Thread Tony Caduto
Bruce, On another note, is there plans to improve the type checking of stored functions during the save/compile? Currently I can pretty much make tons of mistakes (on purpose of course :-) and they are not flagged as errors until runtime. The biggest complaint I see from other DBAs (MS SQL, Oracl

Re: [GENERAL] Problem with select statement

2005-02-20 Thread phil campaigne
Ragnar Hafstað wrote: On Sun, 2005-02-20 at 18:18 -0500, phil campaigne wrote: Yes Gnari it works now! all I had to do in addition to your advice was alias the sub select: hardwoodthunder=# select player_number,player_name,cum_score,sum(a),sum(c),sum(t) from ( select player_number, player_na

Re: [GENERAL] Problem with select statement

2005-02-20 Thread Ragnar Hafstað
On Sun, 2005-02-20 at 18:18 -0500, phil campaigne wrote: > Yes Gnari it works now! > all I had to do in addition to your advice was alias the sub select: > > hardwoodthunder=# select > player_number,player_name,cum_score,sum(a),sum(c),sum(t) from ( select > player_number, player_name, cum_scor

[GENERAL] Problem with select statement

2005-02-20 Thread phil campaigne
Yes Gnari it works now! all I had to do in addition to your advice was alias the sub select: hardwoodthunder=# select player_number,player_name,cum_score,sum(a),sum(c),sum(t) from ( select player_number, player_name, cum_score, (select player_points where aspect='A') as A ,(select player_points

Re: [GENERAL] Which parameters requires a restart?

2005-02-20 Thread Tom Lane
Devrim GUNDUZ <[EMAIL PROTECTED]> writes: > In postgresql.conf, we have such a sentence: > "Some settings, such as listen_address, require a postmaster shutdown and > restart to take effect." > Which other parameter changes requires a restart? Do we have a doc on > this? http://www.postgresql.o

Re: [GENERAL] Returning 0 rows from a PL/PGSQL

2005-02-20 Thread Vitaly Belman
Good thinking, it works :) Thanks. On Sat, 19 Feb 2005 16:53:52 -0800 (PST), Stephan Szabo <[EMAIL PROTECTED]> wrote: > On Sun, 20 Feb 2005, Vitaly Belman wrote: > > > I have the following plpgsql function: > > > > CREATE OR REPLACE FUNCTION public."temp"(int4) > > RETURNS public.books AS > >

Re: [GENERAL] Problems with select statement

2005-02-20 Thread Ragnar Hafstað
On Sun, 2005-02-20 at 16:32 -0500, phil campaigne wrote: > hardwoodthunder=# select player_number, player_name, cum_score, (select > player_points where aspect='A') as A ,(select player_points where > aspect='C') as C, (select player_points where aspect='T') as T from > (select * from player as

[GENERAL] Problems with select statement

2005-02-20 Thread phil campaigne
I see that I need another qualifier, cum_score in the select statement, but I still need to consolidate the rows: hardwoodthunder=# select player_number, player_name, cum_score, (select player_points where aspect='A') as A ,(select player_points where aspect='C') as C, (select player_points whe

Re: [GENERAL] Which parameters requires a restart?

2005-02-20 Thread Devrim GUNDUZ
Hi myself, On Sun, 20 Feb 2005, Devrim GUNDUZ wrote: In postgresql.conf, we have such a sentence: "Some settings, such as listen_address, require a postmaster shutdown and restart to take effect." Which other parameter changes requires a restart? Do we have a doc on this? I think I've found it: htt

[GENERAL] Which parameters requires a restart?

2005-02-20 Thread Devrim GUNDUZ
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi, In postgresql.conf, we have such a sentence: "Some settings, such as listen_address, require a postmaster shutdown and restart to take effect." Which other parameter changes requires a restart? Do we have a doc on this? Regards, - -- Devrim GUND

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

2005-02-20 Thread Jonel Rienton
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 I don't use PostgreSQL in Windows, I was just merely verifying that this guy isn't the only one having this kind of problem, and yes this is a Mac. I run my PostgreSQL db in Solaris, Linux and Mac OS X :-) - - Jonel Rienton http://blogs.road14.c

Re: [GENERAL] Scalability with large numbers of tables

2005-02-20 Thread Scott Marlowe
On Sun, 2005-02-20 at 10:45, Lincoln Yeoh wrote: > I'm not an expert. > > Turn off tab completion? It's probably scanning through all the possible > table names and the algorithm used is probably not designed for that > number. And with 42000 tables, tab completion may not be that helpful. > >

[GENERAL] Problems with select statement

2005-02-20 Thread phil campaigne
Hi all, I'm haveing trouble writing a select statement that gives me a resulting row like this: player_number, player name,a,c,t, (total of a+c+t). here's what I have so far but it puts the a,c,t in separate rows. hardwoodthunder=# select (select player_points where aspect='A') as A,(select play

Re: [GENERAL] Triggers, again.. ;-)

2005-02-20 Thread Phil Endecott
Greg wrote: > is "DROP TRIGGER" transaction safe?... I mean, could I do: > > BEGIN > DROP TRIGGER category_mv_ut; > ... insert rows > ... update materialized view table > CREATE TRIGGER category_mv_ut AFTER UPDATE ON items > FOR EACH ROW EXECUTE PROCEDURE update_ut(); > COMMIT; > > .. without oth

Re: [GENERAL] Scalability with large numbers of tables

2005-02-20 Thread Larry Rosenman
Lincoln Yeoh wrote: > I'm not an expert. > > Turn off tab completion? It's probably scanning through all the > possible table names and the algorithm used is probably not designed > for that number. And with 42000 tables, tab completion may not be > that helpful. > > Don't use ext2/ext3? There

Re: [GENERAL] How do I change sort order behavious with nulls

2005-02-20 Thread charlie clark
On Sat, 19 Feb 2005 12:01:07 -0600, Bruno Wolff III <[EMAIL PROTECTED]> wrote: On Sat, Feb 19, 2005 at 18:04:32 +0100, charlie clark <[EMAIL PROTECTED]> wrote: Dear list, is there a simple way to change the way ORDER BY works on columns with NULLs? I can understand the need for default behaviour

Re: [GENERAL] Scalability with large numbers of tables

2005-02-20 Thread Lincoln Yeoh
I'm not an expert. Turn off tab completion? It's probably scanning through all the possible table names and the algorithm used is probably not designed for that number. And with 42000 tables, tab completion may not be that helpful. Don't use ext2/ext3? There are other filesystems on Linux which

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

2005-02-20 Thread Magnus Hagander
I assume this is also VirtuaL PC on the mac, right? I've been using VirtualPC on the PC for a lot of th dev work on the intaller, and it should certaily work there.. Does this only occur with win2k, or does it also occur with XP/2003/whatever? In the end I doubt there is much we can do, it seems

[GENERAL] Scalability with large numbers of tables

2005-02-20 Thread Phil Endecott
Dear Postgresql experts, I have a single database with one schema per user. Each user has a handful of tables, but there are lots of users, so in total the database has thousands of tables. I'm a bit concerned about scalability as this continues to grow. For example I find that tab-completion