[GENERAL] Did not find any relation named...

2003-09-30 Thread Mike Leahy
Hello all, I've got an issue with the ODBC component with PostgreSQL (v 7.3.4-2 in Cygwin). I've connected to my DB using MS Access, and things seemed to be working reasonably well. However, when I exported a table to the DB from Access, while it shows up in the list of tables in the DB, if I

Re: [GENERAL] psql error: cannot open libpq.so.3

2003-09-30 Thread Tom Lane
Phil Campaigne <[EMAIL PROTECTED]> writes: > -bash-2.05b$ ldd /usr/local/pgsql/lib/libpq.so.3 > libcrypt.so.1 => /lib/libcrypt.so.1 (0x4001d000) > libresolv.so.2 => /lib/libresolv.so.2 (0x4004a000) > libnsl.so.1 => /lib/libnsl.so.1 (0x4005a000) > libc.so.6 => /li

[GENERAL] Stored procedures with variable number of args ?

2003-09-30 Thread Bruno BAGUETTE
Hello, Is it possible to make PL/PGSQL stored procedures with a variable number of args ? If yes, is it possible to have a sample ? Thanks you in advance :-) --- Bruno BAGUETTE - [EMAIL PROTECTED] ---(end of broadcast)--

Re: [GENERAL] Functional index performance question

2003-09-30 Thread Greg Stark
Arguile <[EMAIL PROTECTED]> writes: > On Tue, 2003-09-30 at 07:06, Mike Mascari wrote: > [snip] > > CREATE INDEX i_employees ON employees(lower(name)); > > > > Let's also assume that the lower() function is computationally > > expensive. Now if I have a query like: > > > > SELECT lower(name) > >

[GENERAL] psql error: cannot open libpq.so.3

2003-09-30 Thread Phil Campaigne
Hi Tom, THanks for your response. Here are my results: -bash-2.05b$ ldd /usr/local/pgsql/bin/psql libpq.so.3 => /usr/local/pgsql/lib/libpq.so.3 (0x40013000) libz.so.1 => /usr/lib/libz.so.1 (0x4002f000) libreadline.so.4 => /usr/lib/libreadline.so.4 (0x4003d000) libte

Re: [GENERAL] Hesitate to write this: can't get at postgres.org

2003-09-30 Thread Joshua D. Drake
We run MySQL as the backend ;) Bill Bell wrote: When I request http://www.postgresql.org all I get is a light grey line on a dark grey background and the HTML is correspondingly "uninformative". Tried looking a couple of days ago, thought it must just be some transient problem. Anybody know? B

Re: [GENERAL] [postgis-users] Union as an aggregate

2003-09-30 Thread strk
tgl wrote: > strk <[EMAIL PROTECTED]> writes: > > If I run that again, *exactly the same query*: > > PID USER PRI NI SIZE RSS SHARE STAT %CPU %MEM TIME COMMAND > > 566 pgsql 14 0 126M 126M 3396 S 0.0 16.8 7:13 postmaster > > > It looks like someone is leaking memory, eit

Re: RE : [GENERAL] mod_auth_pgsql & encryption

2003-09-30 Thread Network Administrator
Quoting Bruno BAGUETTE <[EMAIL PROTECTED]>: > > I'm personally using mod_auth_pgsql against a user table with > > encrypted passwords. To properly encrypt them I am using the > > contrib pgcrypto module and something like > > Hello, > > Can you tell me what version of mod_auth_pgsql do you us

Re: [GENERAL] Functional index performance question

2003-09-30 Thread Arguile
On Tue, 2003-09-30 at 09:54, Mike Mascari wrote: > Arguile wrote: > > > On Tue, 2003-09-30 at 07:06, Mike Mascari wrote: > > > >>CREATE INDEX i_employees ON employees(lower(name)); > >> > >>Let's also assume that the lower() function is computationally > >>expensive. Now if I have a query like: >

Re: [GENERAL] pg_hba.conf

2003-09-30 Thread Nigel J. Andrews
On Tue, 30 Sep 2003, Tom Lane wrote: > "Nigel J. Andrews" <[EMAIL PROTECTED]> writes: > > In 7.3 and less ssl connections fail if a host line matches before the hostssl > > line. At least I think that's the situation, there is definitely something > > there that will make a ssl connection get reje

Re: [GENERAL] Functional index performance question

2003-09-30 Thread Mike Mascari
Arguile wrote: > On Tue, 2003-09-30 at 07:06, Mike Mascari wrote: > >>CREATE INDEX i_employees ON employees(lower(name)); >> >>Let's also assume that the lower() function is computationally >>expensive. Now if I have a query like: >> >>SELECT lower(name) >>FROM employees >>WHERE lower(name) = 'mik

Re: [GENERAL] [postgis-users] Union as an aggregate

2003-09-30 Thread Tom Lane
strk <[EMAIL PROTECTED]> writes: > dblasby wrote: >> Hum - this shouldnt do anything. >> The aggregate should have "null" as its initial value. >> GeomUnion(null,) --> null. >> So, you'll end up with null *very* quickly because >> GeomUnion(null,) returns null without any actual execution. > It l

Re: [GENERAL] Divide by zero...

2003-09-30 Thread Robert Creager
When grilled further on (Tue, 30 Sep 2003 09:26:19 -0400), Mike Leahy <[EMAIL PROTECTED]> confessed: > I have a query that calculates various using variables from a survey > database. As with any survey, there are many instantces of null values. I'm > wondering if there is any way to escape th

Re: [GENERAL] Functional index performance question

2003-09-30 Thread Tom Lane
Arguile <[EMAIL PROTECTED]> writes: > On Tue, 2003-09-30 at 07:06, Mike Mascari wrote: >> SELECT lower(name) >> FROM employees >> WHERE lower(name) = 'mike' >> >> will PostgreSQL re-evaluate lower(name)? Is it necessary? > No, it won't re-evaluate. I think he's asking whether the lower(name) app

Re: [GENERAL] pg_hba.conf

2003-09-30 Thread Tom Lane
"Nigel J. Andrews" <[EMAIL PROTECTED]> writes: > In 7.3 and less ssl connections fail if a host line matches before the hostssl > line. At least I think that's the situation, there is definitely something > there that will make a ssl connection get rejected even if there is an > appropiate entry in

Re: [GENERAL] Functional index performance question

2003-09-30 Thread Arguile
On Tue, 2003-09-30 at 07:06, Mike Mascari wrote: [snip] > CREATE INDEX i_employees ON employees(lower(name)); > > Let's also assume that the lower() function is computationally > expensive. Now if I have a query like: > > SELECT lower(name) > FROM employees > WHERE lower(name) = 'mike' > > will

Re: [GENERAL] Where are user-defined types stored/viewed

2003-09-30 Thread btober
> On Monday 29 September 2003 13:35, [EMAIL PROTECTED] wrote: >> After I execute a command like >> >> CREATE TYPE employee_wage_journal_sum AS (supplier_pk integer, >> employee_pk integer, >> hourly_dollars double precision, >> annual_dollars double precision); >> >> where

Re: [GENERAL] pg_hba.conf

2003-09-30 Thread Nigel J. Andrews
On Tue, 30 Sep 2003, Angel Todorov wrote: > Hello, sometimes I get a strange error from postgresql when I try to > connect using ssl to the server: > > LOG: parse_hba: invalid syntax in pg_hba.conf file at line 46, token > "hostssl" > FATAL: Missing or erroneous pg_hba.conf file, see postmaste

Re: [GENERAL] pg_hba.conf

2003-09-30 Thread Peter Eisentraut
Angel Todorov writes: > LOG: parse_hba: invalid syntax in pg_hba.conf file at line 46, token > "hostssl" It looks as though your server was not compiled with SSL support. -- Peter Eisentraut [EMAIL PROTECTED] ---(end of broadcast)--- TIP 8: e

Re: [GENERAL] Problem with lock?

2003-09-30 Thread Peter Eisentraut
Bjørn T Johansen writes: > I run the following SQL before updating one table: > > "lock table tablename" > > but when I try do update the same table later on, the lock table command > just hangs (i.e the table is already locked). > It was my understanding that this lock was removed when I call com

[GENERAL] Functional index performance question

2003-09-30 Thread Mike Mascari
Let's assume I have a table like so: CREATE TABLE employees ( employeeid text not null, name text not null ); CREATE INDEX i_employees ON employees(lower(name)); Let's also assume that the lower() function is computationally expensive. Now if I have a query like: SELECT lower(name) FROM emplo

Re: [GENERAL] Problem with lock?

2003-09-30 Thread Bjørn T Johansen
It looks like it was a one time happening... I restarted the database and then tried again and then it all worked like a charm Hmmm BTJ On Tue, 2003-09-30 at 12:33, Bjørn T Johansen wrote: > I run the following SQL before updating one table: > > "lock table tablename" > > but when I try

[GENERAL] Problem with lock?

2003-09-30 Thread Bjørn T Johansen
I run the following SQL before updating one table: "lock table tablename" but when I try do update the same table later on, the lock table command just hangs (i.e the table is already locked). It was my understanding that this lock was removed when I call commit or do I have to explicitly unl

Re: [GENERAL] [postgis-users] Union as an aggregate

2003-09-30 Thread strk
dblasby wrote: > strk wrote: > > Dave, I made no special 'unite' code, just sql create command: > > CREATE AGGREGATE unite ( > > sfunc = GeomUnion, > > basetype = geometry, > > stype = geometry > > ); > > Hum - this shouldnt do anything. > > The aggregate should have "null" as its ini

Re: [GENERAL] Time problem again?

2003-09-30 Thread Bjørn T Johansen
Oki, I will check it out Thx! :) BTJ On Tue, 2003-09-30 at 11:24, Richard Huxton wrote: > On Tuesday 30 September 2003 09:50, Bjørn T Johansen wrote: > > On Tue, 2003-09-30 at 10:42, Richard Huxton wrote: > > > So - your rule is something like: > > > > > > For some block of times... > > >

Re: [GENERAL] Time problem again?

2003-09-30 Thread Richard Huxton
On Tuesday 30 September 2003 09:50, Bjørn T Johansen wrote: > On Tue, 2003-09-30 at 10:42, Richard Huxton wrote: > > So - your rule is something like: > > > > For some block of times... > > IF max(my_time) - min(my_time) > 12 hours > > THEN sort "through midnight" > > ELSE sort "naturally" >

Re: [GENERAL] Time problem again?

2003-09-30 Thread Karsten Hilbert
> Why can't you just take my word for it, this is the way it should be > sorted He *does* take your word that this is the way it should be sorted. But without knowing WHY this is the way it should be sorted it is hard to deduce an algorithm for doing so. What you probably need to do is sort th

Re: [GENERAL] Time problem again?

2003-09-30 Thread Bjørn T Johansen
On Tue, 2003-09-30 at 10:42, Richard Huxton wrote: > So - your rule is something like: > > For some block of times... > IF max(my_time) - min(my_time) > 12 hours > THEN sort "through midnight" > ELSE sort "naturally" > > Which is what Tom said (I was wondering where he got his 12 hours fro

[GENERAL] pg_hba.conf

2003-09-30 Thread Angel Todorov
Hello, sometimes I get a strange error from postgresql when I try to connect using ssl to the server:   LOG:  parse_hba: invalid syntax in pg_hba.conf file at line 46, token "hostssl" FATAL:  Missing or erroneous pg_hba.conf file, see postmaster log for details   The contents of the pg

Re: [GENERAL] Time problem again?

2003-09-30 Thread Richard Huxton
On Tuesday 30 September 2003 09:00, Bjørn T Johansen wrote: > Why can't you just take my word for it, this is the way it should be > sorted I'm happy to take your word, but until I can figure out what rules you're using I can't suggest anything. You clearly know what you want, but I can't ge

Re: [GENERAL] Time problem again?

2003-09-30 Thread Bjørn T Johansen
Why can't you just take my word for it, this is the way it should be sorted The reason I know this, is because the timespan, as I have mention before, from first record to last record is always less than 12 hours. i.e the span from 0200 to 2200 is 20 hours, i.e. 2200 comes before 0200! BTJ