[GENERAL] Create Database Error

2000-04-12 Thread Webb Sprague
A couple of days ago I tried to create a database and got an error to the effect that I couldn't do that (no more specific). I then tried to mkdir in my DATA directory for a new database (as root), and I got "Can't make directory--not enough space in DIR"). I deleted everything and then did initd

Re: [GENERAL] PostgreSQL-JDBC correct URL

2000-04-12 Thread Silvio Macedo
On Wed, 12 Apr 2000, Haroldo Stenger wrote: > Now I need help in finding: Hello to you too. :) > - I need to track the queries that the backend receives, so that I can > see what GeneXus is sending to PostgreSQL. http://www.postgresql.org/docs/admin/pg-options.htm > > - A list

Re: [GENERAL] PostgreSQL-JDBC correct URL

2000-04-12 Thread Haroldo Stenger
Now I need help in finding: - A list of the errors of the backend, _WITH_ the numbers, not only the texts. - I need to track the queries that the backend receives, so that I can see what GeneXus is sending to PostgreSQL. I coudn't find this info in the doc, either. Any Ideas? Th

Re: [GENERAL] Getting number of days in a month

2000-04-12 Thread Ken Causey
Here's my perl implementation: ### # # lastday( month, year (4 digit) ) # # Returns: last day of the month # ### sub lastday { my $month=shift; my $year= shift; $month--; my @days = (31,0,31,30,31,30,31,31,30

Re: [GENERAL] Perl error: fetchrow_hashref failed

2000-04-12 Thread Andrew Perrin - Demography
I think the cleanest way to handle this is: while ($Rhash = $sth->fetchrow_hashref) { do something with %$Rhash or just refer to $Rhash->{fieldname} } The array-based version below, if I remember correctly, can fail in certain cases, including if both params are undefined. The code above succ

Re: [GENERAL] Perl error: fetchrow_hashref failed

2000-04-12 Thread Moray McConnachie
All I can say is I get no errors of this kind in my code, which runs $sth=$dbh->prepare("select param1,param2 from sometable"); $sth->execute; while (@resultset = $sth->fetchrow_array) { .. do something with them . } $sth->finish; I don't think calling $sth-finish should make th

Re: [GENERAL] PostgreSQL (fwd)

2000-04-12 Thread kaiq
perhaps you'd better first find an evaluation copy of informix, seems that they have more systematic and well-thought feature set. there are some historical relations between informix (esp. Object relational features) -- share the same original source code! my understanding is that more recent

[GENERAL] Getting number of days in a month

2000-04-12 Thread Guillaume Perréal
To obtain the number of days in a month, I wrote this function: CREATE FUNCTION dayCountOfMonth(datetime) RETURNS float AS ' DECLARE theDate ALIAS FOR $1; monthStart date; monthEnddate; BEGIN monthS

Re: [GENERAL] Can't load plpgsql.so error [SOLVED]

2000-04-12 Thread Adrian Urquhart
On 11 Apr 2000 23:52:32 -0400, [EMAIL PROTECTED] (Ed Loehr) wrote: >Would you mind posting the actual error text along with PGDATA settings? > Well, I was in the process of sending the information you asked for, when I decided to do some extra investigating. The outcome was that I'd screwed up -

Re: [GENERAL] Perl error: fetchrow_hashref failed

2000-04-12 Thread Jeffrey
Your script works fine, but I still get the same error. I can duplicate this same error with a non-hash ref like this. $sth=$dbh->prepare("select param1,param2 from sometable"); $sth->execute; while (($param1,$param2) = $sth->fetchrow_array) { .. do something with them . } My concern

Re: [GENERAL] create rule x as on select...do insert - when?

2000-04-12 Thread Jan Wieck
> Hi all, > I'm trying to create simple rule: > nieruchomosci=> create rule log_select as > on select to oferty do insert into log_oferty (nr) values(oferty.nr); > ERROR: only instead-select rules currently supported on select > nieruchomosci=> > > pg 6.5.3 on linux, am I forced to create a trigg

Re: [GENERAL] foriegn key...

2000-04-12 Thread Jan Wieck
> On 11 Apr 2000 17:55:43 -0400, [EMAIL PROTECTED] (Andrew > Schmeder) wrote: > > AFAIK Postgres doesn't (yet) directly support foreign keys. You have > to supply that ability yourself, possibly through triggers and > procedures. AFAIK (and I led the project), v7.0 (released soon and the

Re: [GENERAL] foriegn key...

2000-04-12 Thread Jan Wieck
> > AFAIK Postgres doesn't (yet) directly support foreign keys. You have > > to supply that ability yourself, possibly through triggers and > > procedures. > > I am using version 7.0 beta 5... and btw, I found a little snippit of > code syntax on this page: http://www.postgresql.org/projects/devel

Re: [GENERAL] Perl error: fetchrow_hashref failed

2000-04-12 Thread Moray McConnachie
- Original Message - From: "Jeffrey" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, April 12, 2000 10:05 AM Subject: [GENERAL] Perl error: fetchrow_hashref failed > Hi, I wonder if I might tap the vast knowledge here againg. > > I have a perl script that is looping through

[GENERAL] PostgreSQL (fwd)

2000-04-12 Thread Oliver Elphick
I don't have a CS background and don't really feel competent to answer this; so I am forwarding it to the PostgreSQL list. --- Forwarded Message Date:Wed, 12 Apr 2000 05:24:41 -0400 From:"Adien.Reynald.Suresh.Lopez" <[EMAIL PROTECTED]> To: [EMAIL PROTECTED] Subject: PostgreSQL

[GENERAL] recovery

2000-04-12 Thread Gustavo Henrique
Suddenly, i started getting some weird errors with a table named xx: db=> drop sequence xx_cod_seq; ERROR: DeleteTypeTuple: xx_cod_seq type nonexistent db=> drop table xx; ERROR: mdopen: couldn't open xx_pkey: No such file or directory Then, i noticed the file xx_pkey wasnt at the base directo

[GENERAL] Perl error: fetchrow_hashref failed

2000-04-12 Thread Jeffrey
Hi, I wonder if I might tap the vast knowledge here againg. I have a perl script that is looping through a statement handle like this. $statement = "select * from sometable"; $sth=$dbh->prepare($statement); $sth->execute(); # here is the part I have a question about. while (%hash_ref = %{$sth->

Re: [GENERAL] foriegn key...

2000-04-12 Thread Manuel Cabido
Better try to install PostgreSQL version 7 and experiment on referential integrity... -- Manny C. Cabido e-mail:[EMAIL PROTECTED]

FW: [GENERAL] FOREIGN KEY syntax

2000-04-12 Thread Andrzej Mazurkiewicz
FYI > -Original Message- > From: Andrzej Mazurkiewicz > Sent: 3 marca 2000 17:05 > To: 'Ron Peterson' > Cc: [EMAIL PROTECTED] > Subject: RE: [GENERAL] FOREIGN KEY syntax > > > > -Original Message- > From: Ron Peterson [SMTP:[EMAIL PROTECTED]] > Sent: 3 marca 2000 15:5