Re: [GENERAL] Debian Woody 7.3.4 packages?

2003-09-02 Thread Doug McNaught
Martijn van Oosterhout <[EMAIL PROTECTED]> writes: > Hi, > > Does anyone have any packages for 7.3.4 for debian woody? I'd like that too--Oliver Elphick has 7.3.2 but it doesn't look like he's had time to build 7.3.4. I may try to build it myself but probably won't get to it until later this we

Re: [GENERAL] Pass parameters to a TCL function

2003-09-02 Thread Josué Maldonado
I'm sorry, found my mistake, the way I'm calling the function is wrong it should be "audit_log" ('xtable','internal'), it works. Thanks Josué Maldonado wrote: Hello list, I have a tcl trigger function called audit_log(varchar, bpchar), if I write a trigger in a table CREATE TRIGGER tg_test

[GENERAL] how to call a TCL function from within a plpgsql trigger?

2003-09-02 Thread Josué Maldonado
Hi list, That's the question, anyone knows a way to do that? Thanks in advance, Josue Maldonado. ---(end of broadcast)--- TIP 9: the planner will ignore your desire to choose an index scan if your joining column's datatypes do not match

[GENERAL] Pass parameters to a TCL function

2003-09-02 Thread Josué Maldonado
Hello list, I have a tcl trigger function called audit_log(varchar, bpchar), if I write a trigger in a table CREATE TRIGGER tg_test AFTER INSERT OR UPDATE OR DELETE ON xtable FOR EACH ROW EXECUTE PROCEDURE audit_log('xtable','internal'); it gives this error: ERROR: CreateTrigger: funct

[GENERAL] Field collection in trigger

2003-09-02 Thread Josué Maldonado
Hello list, First of all, excuse me if this is not the right site to ask my question. Is there a way in postgresql to loop to all the fields of a given table and compare the OLD and NEW value for each field. I need to make an audit table that must contain only the fields changed after and ins

Re: [HACKERS] [GENERAL] identifying each individual tuple locked

2003-09-02 Thread Jenny -
> I understand that ObjID of LOCKtag recognizes each individual row locked by > a row level lock. BUt i have noticed that if i lock 2 different rows of the > same table they have the same blkno. is this deduction ok? If they happen to be stored in the same block, they'd have the same blkno

Re: [GENERAL] pg_autovacuum

2003-09-02 Thread Matthew T. O'Connor
On Tue, 2003-09-02 at 20:40, Adam Kavan wrote: > And there is the problem, all of the counts stay at 0 no matter what I do. OK, so why is this happening... a bug in the stats system? Ignoring pg_autovaccu, what numbers do you get from the stats system when you do a: SELECT relname,n_tup_ins,n_tu

[GENERAL] Debian Woody 7.3.4 packages?

2003-09-02 Thread Martijn van Oosterhout
Hi, Does anyone have any packages for 7.3.4 for debian woody? Thanks in advance, -- Martijn van Oosterhout <[EMAIL PROTECTED]> http://svana.org/kleptog/ > "All that is needed for the forces of evil to triumph is for enough good > men to do nothing." - Edmond Burke > "The penalty good people

Re: [GENERAL] pg_autovacuum

2003-09-02 Thread Adam Kavan
First, I meant to ask for debug level 3, (-d3, not -d2) sorry Also, are you sure that pg_autovacuum is connecting to the same database cluster as your insert delete script? I have attached a new log with a debug level of 3. And I am sure they are connecting to the same cluster, I only have

Re: [GENERAL] pg_autovacuum

2003-09-02 Thread Matthew T. O'Connor
On Tue, 2003-09-02 at 18:30, Adam Kavan wrote: > Ok I ran pg_autovacuum using the supplied command line and have attached > the resulting log. My script is just INSERT INTO "PointUsage" > VALUES(DEFAULT,32,now(),1024); repeated several thousand times. I ran > autovac, then my script, then veri

Re: [GENERAL] Querying $libdir

2003-09-02 Thread Nigel J. Andrews
Replying to myself... On Wed, 3 Sep 2003, Nigel J. Andrews wrote: > > The subject says it really. Is there a way to query the value of $libdir, and I > don't mean the dynamic_library_path GUC? > > I ask because, I have scripts to create databases and I've come to make > adjustments to load tsea

[GENERAL] Querying $libdir

2003-09-02 Thread Nigel J. Andrews
The subject says it really. Is there a way to query the value of $libdir, and I don't mean the dynamic_library_path GUC? I ask because, I have scripts to create databases and I've come to make adjustments to load tsearch2. Now contrib/tsearch2 installs itself into $libdir with tsearch2.sql insta

Re: [GENERAL] web hosting postgres

2003-09-02 Thread Aaron
HI, how much storage space etc. Thanks Aaron On Wed, 2003-09-03 at 02:44, Richard Welty wrote: > On 03 Sep 2003 00:26:04 +0300 Aaron <[EMAIL PROTECTED]> wrote: > > Can anyone out there point me to an inexpensive web hosting solution > > that offers postgres database support??? > > i have a linux

Re: [GENERAL] pg_autovacuum

2003-09-02 Thread Adam Kavan
So you probabaly want to do somethign like this: pg_autovacuum -d2 -s1 -S0 -v10 -V0 -a10 -A0 -L pg_autovacuum.out this will set debug=2, sleep only 1 sec after each look, and perform vacuums and analyzes after only 10 insert/update/delets and log it all to pg_autovacuum.out Run your update scrip

[GENERAL] Tomcat Connection Pool?

2003-09-02 Thread Bjørn T Johansen
I am running a connection pool for the PostgreSQL and I was wondering which values you would reccommend for the connection pool?         maxWait     5000             maxActive    

Re: [GENERAL] pg_autovacuum

2003-09-02 Thread Matthew T. O'Connor
> > What do you mean which options am I setting? I am using > > ./pg_autovacuum -U akavan -s30 -d3 Yeah, this is what I was looking for. > I am using redhat 9 with gcc 3.2.2. And I will paste some output from > debug level 2 at the end of this post. During the run I inserted 10523 > lines int

Re: [GENERAL] Commercial postgresql

2003-09-02 Thread Nigel J. Andrews
On Tue, 2 Sep 2003, Bo Lorentsen wrote: > On Tue, 2003-09-02 at 22:21, Bruno Wolff III wrote: > > > This will be a little easier than checking out a copy from CVS. However, > > I think the HISTORY file has more detail in it. > I think you are right, maybe a cvsview utility would help, regarding >

Re: [GENERAL] Commercial postgresql

2003-09-02 Thread Bo Lorentsen
On Tue, 2003-09-02 at 23:32, Tom Lane wrote: > I don't believe Bruce has yet made any effort to update the SGML > release-notes file for 7.4. Instead look at the CVS-tip HISTORY file: > http://developer.postgresql.org/cvsweb.cgi/pgsql-server/HISTORY Ok thanks, this is very usefull ! /BL -

Re: [GENERAL] Commercial postgresql

2003-09-02 Thread Bo Lorentsen
On Tue, 2003-09-02 at 22:21, Bruno Wolff III wrote: > This will be a little easier than checking out a copy from CVS. However, > I think the HISTORY file has more detail in it. I think you are right, maybe a cvsview utility would help, regarding this problem ? But a bugzilla tool, may also be nice

Re: [GENERAL] Commercial postgresql

2003-09-02 Thread Tom Lane
Bruno Wolff III <[EMAIL PROTECTED]> writes: > Bo Lorentsen <[EMAIL PROTECTED]> wrote: >> Are there a list of things that will be done in 7.4, or better a >> development roadmap like the one the Mozilla folks are using ? > For a quick look see the current version of the release notes on the web a

Re: [GENERAL] Restarting, ownership, and permissions

2003-09-02 Thread Nigel J. Andrews
On Tue, 2 Sep 2003, Richard Huxton wrote: > On Tuesday 02 September 2003 21:51, Aurangzeb M. Agha wrote: > > I run my Postgres DB on a virtual linux server where I don't have root. > > I'm 'admin', by default, and have created a 'postgres' user to own the DB > > dir. > > > > My problem is that on

[GENERAL] web hosting postgres

2003-09-02 Thread Aaron
Hi, Can anyone out there point me to an inexpensive web hosting solution that offers postgres database support??? Thanks Aaron ---(end of broadcast)--- TIP 7: don't forget to increase your free space map settings

Re: [GENERAL] Restarting, ownership, and permissions

2003-09-02 Thread Richard Huxton
On Tuesday 02 September 2003 21:51, Aurangzeb M. Agha wrote: > I run my Postgres DB on a virtual linux server where I don't have root. > I'm 'admin', by default, and have created a 'postgres' user to own the DB > dir. > > My problem is that on occassion, my ISP restarts my server, stranding all > m

Re: [GENERAL] identifying each individual tuple locked

2003-09-02 Thread Jenny -
> I understand that ObjID of LOCKtag recognizes each individual row locked by > a row level lock. BUt i have noticed that if i lock 2 different rows of the > same table they have the same blkno. is this deduction ok? If they happen to be stored in the same block, they'd have the same blkno ..

Re: [GENERAL] identifying each individual tuple locked

2003-09-02 Thread Tom Lane
"Jenny -" <[EMAIL PROTECTED]> writes: > I understand that ObjID of LOCKtag recognizes each individual row locked by > a row level lock. BUt i have noticed that if i lock 2 different rows of the > same table they have the same blkno. is this deduction ok? If they happen to be stored in the same b

[GENERAL] identifying each individual tuple locked

2003-09-02 Thread Jenny -
I understand that ObjID of LOCKtag recognizes each individual row locked by a row level lock. BUt i have noticed that if i lock 2 different rows of the same table they have the same blkno. is this deduction ok? thanks jenny _ Get MS

Re: [GENERAL] distributed.net now runs postgresql

2003-09-02 Thread Ron Johnson
On Mon, 2003-09-01 at 21:46, Matthew T. O'Connor wrote: > Just thought everyone might be interested to know that the > distributed.net project now uses postgresql for its stats tracking > system. They just migrated from Sysbase which they had been using for > several years. Check out: > http://n0

Re: [GENERAL] Commercial postgresql

2003-09-02 Thread Shridhar Daithankar
On 2 Sep 2003 at 9:36, Vivek Khera wrote: > > "BL" == Bo Lorentsen <[EMAIL PROTECTED]> writes: > > BL> On Tue, 2003-09-02 at 04:08, Vivek Khera wrote: > >> 3) Index bloat is apparently a bigger problem than I thought. > BL> This does not sound too nice ! > > No, like I said, I shaved 900Mb o

Re: [GENERAL] Commercial postgresql

2003-09-02 Thread Vivek Khera
> "BL" == Bo Lorentsen <[EMAIL PROTECTED]> writes: BL> On Tue, 2003-09-02 at 04:08, Vivek Khera wrote: >> I use it in 24/7/365 system which is heavily written to and read >> from. The drawbacks I have are: BL> How depressing, may I ask that PG version you are using ? Currently 7.2 in product

Re: CPAN, P for postgresql [Re: [GENERAL] LAST_DAY Function in

2003-09-02 Thread Pavel Stehule
On Tue, 2 Sep 2003, Shridhar Daithankar wrote: > On 2 Sep 2003 at 15:08, Amin Schoeib wrote: > > I would like to know if there is a Function in Postgres > > Like the LAST_DAY Function in Oracle?? > > In Oracle you can use the function the get the last day of a month. > > While this is not a dir

Re: [GENERAL] LAST_DAY Function in Postgres

2003-09-02 Thread Pavel Stehule
Hi, if didn't find this function on http://www.postgresql.org/docs/7.3/interactive/functions-datetime.html, You have to write own function testdb=> create or replace function last_day(date) returns date as 'select cast(date_trunc(''month'', $1) + ''1 month''::interval as date) - 1' language s

CPAN, P for postgresql [Re: [GENERAL] LAST_DAY Function in Postgres]

2003-09-02 Thread Shridhar Daithankar
On 2 Sep 2003 at 15:08, Amin Schoeib wrote: > I would like to know if there is a Function in Postgres > Like the LAST_DAY Function in Oracle?? > In Oracle you can use the function the get the last day of a month. While this is not a direct answer to question.. It made me think. I am sure lot of

[GENERAL] LAST_DAY Function in Postgres

2003-09-02 Thread Amin Schoeib
Title: LAST_DAY Function in Postgres Hi, I would like to know if there is a Function in Postgres Like the LAST_DAY Function in Oracle?? In Oracle you can use the function the get the last day of a month. Thanxx Schoeib 4Tek Gesellschaft für angewandte Informationstechnologien mbH S

[GENERAL] Problems with GRANTING SELECT to a table

2003-09-02 Thread Amin Schoeib
Title: Problems with GRANTING SELECT to a table Hi, I have a problem with permissions for SELECT. Here is what I did: test=> GRANT SELECT ON "poi"."fondsstamm" TO "flex"; GRANT test=> \dp fondsstamm;     Access privileges for database "test"  Schema |   Table    |   Access

Re: [GENERAL] Commercial postgresql

2003-09-02 Thread Shridhar Daithankar
On 2 Sep 2003 at 12:25, Bo Lorentsen wrote: > On Tue, 2003-09-02 at 11:55, Shridhar Daithankar wrote: > > > That's fixed in 7.4. Vacuum in 7.4 prevents index bloat as well. Couple with > > autovacuum daemon or scheduled vacuums, things (hopefully) will be lot better > > than earlier days.. > Ar

Re: [GENERAL] About GPL and proprietary software

2003-09-02 Thread Mike Mascari
Doug Quale wrote: > Bruce Momjian <[EMAIL PROTECTED]> writes: > >>You can bet that RMS, control freak that he is, wouldn't have put that >>disclaimer in there if he felt he had much chance of making the GPL >>dynamic linking restriction enforceable. > > Name calling ("control freak") is childish.

Re: [GENERAL] ADD_Months Function in Postgres

2003-09-02 Thread Pavel Stehule
Hello You can try select current_date + interval '1 month'; regards Pavel Stehule On Tue, 2 Sep 2003, Amin Schoeib wrote: > Hi, > I would like to know if there is a Function in Postgres > Like the add_months Function in Oracle?? > > Thanxx > > Schoeib > > 4Tek Gesellschaft für angewandte I

Re: [GENERAL] Commercial postgresql

2003-09-02 Thread Ivar
> These things are quite important when you have to convince your boss :-) Convincing boss just say: "Caugh board or use postgresql". Meaning of this is that you can't compare comercical or free ware. Probably you want to use postgre because of its free, if this isn't case why you won use oracle

Re: [GENERAL] Commercial postgresql

2003-09-02 Thread Andrew Sullivan
On Sat, Aug 30, 2003 at 01:59:20PM +0200, Bo Lorentsen wrote: > He likes to know about others using Postgres and simple replication (we > need it in at 24/7 system), to know how postgres performs, and how > stable it is regarding its data and the backup feature etc. The replication system release

[GENERAL] ADD_Months Function in Postgres

2003-09-02 Thread Amin Schoeib
Title: ADD_Months Function in Postgres Hi, I would like to know if there is a Function in Postgres Like the add_months Function in Oracle?? Thanxx Schoeib 4Tek Gesellschaft für angewandte Informationstechnologien mbH Schoeib Amin Tel.  +49 (0) 69 697688-132 Fax. +49 (0) 69 697688-

Re: [GENERAL] About GPL and proprietary software

2003-09-02 Thread Doug Quale
Bruce Momjian <[EMAIL PROTECTED]> writes: > The FSF would _like_ dynamic linking to pass the GPL to the > closed-source binary, but that doesn't make it so --- I would like a lot > of things but wanting it to happen isn't enough. > > Their FAQ says (http://www.gnu.org/licenses/gpl-faq.html): > >

Re: [GENERAL] Commercial postgresql

2003-09-02 Thread Claudio Lapidus
Lamar Owen wrote: > Nitpik: that should be 24/7/52, since there aren't 365 weeks in a year. Oh, great. It's just that 7*52 = 364. That leaves us with a full day to idle and still honor the SLA, right? Sorry, couldn't resist :) cl. ---(end of broadcast)-

Re: [GENERAL] pg_autovacuum

2003-09-02 Thread Matthew T. O'Connor
On Fri, 2003-08-29 at 17:21, Adam Kavan wrote: > I decided to try pg_autovacuum and am having a problem. FYI, I just downloaded beta2 and compiled it on RH9 and pg_autovacuum works fine. ---(end of broadcast)--- TIP 3: if posting/reading through

Re: [GENERAL] Commercial postgresql

2003-09-02 Thread Bo Lorentsen
On Tue, 2003-09-02 at 11:55, Shridhar Daithankar wrote: > That's fixed in 7.4. Vacuum in 7.4 prevents index bloat as well. Couple with > autovacuum daemon or scheduled vacuums, things (hopefully) will be lot better > than earlier days.. Are there a list of things that will be done in 7.4, or bet

Re: [GENERAL]

2003-09-02 Thread Shridhar Daithankar
On 2 Sep 2003 at 14:08, [EMAIL PROTECTED] wrote: > Hi, where can be fount Win32 versions of Postgress? http://techdocs.postgresql.org/guides/Windows See, if that helps you.. Bye Shridhar -- No problem is insoluble.-- Dr. Janet Wallace, "The Deadly Years", stardate 3479.4 -

Re: [GENERAL] Multiple Connections

2003-09-02 Thread Paul Thomas
On 01/09/2003 20:10 Carmen Gloria Sepulveda Dedes wrote: > > I'm working with ECPG. > > Somebody know how can I establish multiple connections to the database?? > > (I have used ENABLE THREADS and CONTEXT ALLOCATE in > > oracle ... I'm looking for something similar to this ... if exists) > > H

[GENERAL]

2003-09-02 Thread mailrun
Hi, where can be fount Win32 versions of Postgress? ---(end of broadcast)--- TIP 1: subscribe and unsubscribe commands go to [EMAIL PROTECTED]

Re: [GENERAL] pg_autovacuum

2003-09-02 Thread Matthew T. O'Connor
On Fri, 2003-08-29 at 17:21, Adam Kavan wrote: > I decided to try pg_autovacuum and am having a problem. It never analyzes > or vacuums. I looked at the code and had it display > > printf("%s,%s,%s\n",PQgetvalue(res, j, PQfnumber(res, > "n_tup_ins")),PQgetvalue(res, j, PQfnumber(res, > "n_tup

Re: [GENERAL] Commercial postgresql

2003-09-02 Thread Shridhar Daithankar
On 2 Sep 2003 at 11:49, Bo Lorentsen wrote: > > 3) Index bloat is apparently a bigger problem than I thought. > This does not sound too nice ! That's fixed in 7.4. Vacuum in 7.4 prevents index bloat as well. Couple with autovacuum daemon or scheduled vacuums, things (hopefully) will be lot better

Re: [GENERAL] Commercial postgresql

2003-09-02 Thread Bo Lorentsen
On Tue, 2003-09-02 at 04:08, Vivek Khera wrote: > I use it in 24/7/365 system which is heavily written to and read > from. The drawbacks I have are: How depressing, may I ask that PG version you are using ? > 1) upgrade to major versions require dump/restore which is a >significant amount of

[GENERAL] distributed.net now runs postgresql

2003-09-02 Thread Matthew T. O'Connor
Just thought everyone might be interested to know that the distributed.net project now uses postgresql for its stats tracking system. They just migrated from Sysbase which they had been using for several years. Check out: http://n0cgi.distributed.net/cgi/dnet-finger.cgi?user=decibel Matthew --

Re: [GENERAL] adding SERIAL to a table

2003-09-02 Thread Tom Lane
"Claudio Lapidus" <[EMAIL PROTECTED]> writes: > So? Is there a way to add the sequence to an existing table? Sure. You have to break the SERIAL down to its component parts though. Something like CREATE SEQUENCE seq; ALTER TABLE tab ADD COLUMN ser INTEGER; UPDATE tab SET s

Re: [GENERAL] automatic update

2003-09-02 Thread Jason Godden
A trigger is the right way. Rules rewrite a statement whereas triggers are at row level. so in plpgsql: create or replace function trig_param_ins_upd() returns trigger as ' begin new.ts = current_timestamp; return new; end;' language 'plpgsql'; create trigger trig_param_ins_upd

Re: [GENERAL] Commercial postgresql

2003-09-02 Thread Lamar Owen
On Monday 01 September 2003 22:08, Vivek Khera wrote: > I use it in 24/7/365 system which is heavily written to and read > from. The drawbacks I have are: Nitpik: that should be 24/7/52, since there aren't 365 weeks in a year. > 1) upgrade to major versions require dump/restore which is a >s

Re: [GENERAL] Commercial postgresql

2003-09-02 Thread Vivek Khera
> "BL" == Bo Lorentsen <[EMAIL PROTECTED]> writes: BL> Hi .. BL> He likes to know about others using Postgres and simple replication (we BL> need it in at 24/7 system), to know how postgres performs, and how BL> stable it is regarding its data and the backup feature etc. I use it in 24/7/365

[GENERAL] adding SERIAL to a table

2003-09-02 Thread Claudio Lapidus
Hello   Now perhaps this is a bit dumb, but...   I just populated a new table via \copy. After that, I realize that perhaps is a good thing to have a row identifier in it, so I try   clapidus=> alter table tickets add column rid serial;NOTICE:  ALTER TABLE will create implicit sequence "tic

[GENERAL] automatic update

2003-09-02 Thread Alessandro GARDICH
Hi to all ... I'm looking to a way to auto update some fields of a row when other fileds are updated. the table structure are simple, CREATE TABLE param ( id int4 PRIMARY KEY, val int4, ts timestam(3) DEFAULT CURRENT_TIMESTAMP ); so when a new entry are insert ts areautomatically update, but

Re: [GENERAL] pgadmin3 on Gentoo

2003-09-02 Thread expect
On Tue, 02 Sep 2003 08:42:32 +0200 Christian Traber <[EMAIL PROTECTED]> wrote: > Hi, > > I'm really happy to see that pgadmin3 will run on Linux! > > I tried to build it on Gentoo but got errors. > Was anybody of you able to build it for Gentoo or will there be an > emerge file? Can't help wi