Re: [ADMIN] Odd behavior with NULL value

2001-12-20 Thread Bill Cunningham
I apologize if this is sent twice. The simplest solution would be to use a view over the data hiding the mess of the case statement so that ad-hoc users' queries would still work. - Bill Bob Smith, Hammett & Edison, Inc. wrote: >On Thu, Dec 20, 2001, 18:55:18 Tom Lane wrote: > >>[EMAIL PROTE

Re: [ADMIN] Odd behavior with NULL value

2001-12-20 Thread Tom Lane
[EMAIL PROTECTED] (Bob Smith, Hammett & Edison, Inc.) writes: > Here is the problem I'm trying to solve, perhaps someone can help. > For an invoicing system database, I have a table that defines > employees. Each has a begin and end date defining the employment > period. For current employees, t

Re: [ADMIN] Odd behavior with NULL value

2001-12-20 Thread Bob Smith, Hammett & Edison, Inc.
On Thu, Dec 20, 2001, 18:55:18 Tom Lane wrote: >[EMAIL PROTECTED] (Bob Smith, Hammett & Edison, Inc.) writes: >> On a related note, does anyone know if 'current' works with DATE? > >DATE does not have an internal representation of 'current', so the DATE >input parser treats it the same as 'now'.

Re: [ADMIN] Odd behavior with NULL value

2001-12-20 Thread Stephan Szabo
On Thu, 20 Dec 2001, Bruno Wolff III wrote: > On Thu, Dec 20, 2001 at 04:24:33PM -0800, > "Bob Smith, Hammett & Edison, Inc." <[EMAIL PROTECTED]> wrote: > > See example below of using NULL values with type DATE. It behaves > > strangely in expressions, "(x <> null)" gives an entirely differen

Re: [ADMIN] Odd behavior with NULL value

2001-12-20 Thread Tom Lane
[EMAIL PROTECTED] (Bob Smith, Hammett & Edison, Inc.) writes: > On a related note, does anyone know if 'current' works with DATE? DATE does not have an internal representation of 'current', so the DATE input parser treats it the same as 'now'. AFAIR only timestamp (nee datetime) has that concept

Re: [ADMIN] Odd behavior with NULL value

2001-12-20 Thread Phill Kenoyer
I think that this page will explain it all: http://www.postgresql.org/idocs/index.php?functions-comparison.html |On 011220 17:05 |Bob Smith, Hammett & Edison, Inc. ([EMAIL PROTECTED]) wrote the following... | |See example below of using NULL values with type DATE. It behaves |strangely in expres

Re: [ADMIN] Odd behavior with NULL value

2001-12-20 Thread Bruno Wolff III
On Thu, Dec 20, 2001 at 04:24:33PM -0800, "Bob Smith, Hammett & Edison, Inc." <[EMAIL PROTECTED]> wrote: > See example below of using NULL values with type DATE. It behaves > strangely in expressions, "(x <> null)" gives an entirely different > result than "not(x = null)". Is this intended beh

[ADMIN] Odd behavior with NULL value

2001-12-20 Thread Bob Smith, Hammett & Edison, Inc.
See example below of using NULL values with type DATE. It behaves strangely in expressions, "(x <> null)" gives an entirely different result than "not(x = null)". Is this intended behavior, if so, why? If not, is this a bug? On a related note, does anyone know if 'current' works with DATE? Wit

Re: [ADMIN] Data partitioning

2001-12-20 Thread Christian
We do something similar. What we do is create tables for the different companies (with an underscore as first char). Then we create a meta-lookup table that maps the customer_id to the correct table name. There are some real big problems with this. 1. Tier 1 looks ugly, very ugly. 2. It takes som

Re: [ADMIN] user passwords

2001-12-20 Thread Nick Fankhauser
You might want to take a look at your pg_hba.conf file to see if the auth-method is "trust". Details are here: http://www.postgresql.org/idocs/index.php?client-authentication.html#PG-HBA. CONF -Nick -- Nick Fankhauser [EM

Re: [ADMIN] user passwords

2001-12-20 Thread Felipe Nascimento
Title: RE: [ADMIN] user passwords take a look at http://archives.postgresql.org/pgsql-admin/2001-09/msg00095.php -Original Message- From: Jodi Kanter [mailto:[EMAIL PROTECTED]] Sent: quinta-feira, 20 de dezembro de 2001 14:19 To: Postgres Admin List Subject: [ADMIN] user passwords

[ADMIN] user passwords

2001-12-20 Thread Jodi Kanter
why is it that I can sign in to the postgres database using PSQL without having to specify a password for a user even thought one has been specified in pg_shadow? I signed in to Linux with my own personal id (which is NOT a postgres account) and used the following command to get in: psql -U post

Re: [ADMIN] pgdump fails on trigger function

2001-12-20 Thread Randall Perry
on 12/19/01 11:08 AM, Tom Lane at [EMAIL PROTECTED] wrote: > Randall Perry <[EMAIL PROTECTED]> writes: >> Anyone know what this means: >> getTables(): SELECT (funcname) for trigger cust_modification_date returned 0 >> tuples. Expected 1. > > It would seem you have dropped the function which that

Re: [ADMIN] Data partitioning

2001-12-20 Thread Nick Fankhauser
I don't know what your application looks like, but we're handling a similar situation by using several databases in a single cluster. In our case, the apps are JDBC-based, so it is possible to open a connection pool to each database & easily point the same application code at different sources. Th