Re: [HACKERS] -S is missing in postgresql.conf?

2000-09-20 Thread Tatsuo Ishii
> > It seems -S option for postmaster (detaching ttys) does not exist in > > postgresql.conf. Is there any reason for this? > > It has been declared evil, because it loses the log output. Using shell > redirection, or better yet pg_ctl is the way to go. Really? I thought -S was evil because we h

[HACKERS] dynamic SQL/plsql functions

2000-09-20 Thread Richard Harvey Chapman
I have a large list ot parameters and I'd like to have just one main function for checking them all. Like so: check_param(some_identifier_for_the_param, param_value) ... rec RECORD; ... select into rec check_param_function from param_check_table where id == identifier; select re

[HACKERS] Dynamic application data refreshing

2000-09-20 Thread Jesus Sandoval
I tried to find information in the lists but got no luck. I want to make a client application that performs a query to show the results, but the client application stays open and the database gets updated. I want that the updates of the database reflects on the open client application, I think t

[HACKERS] [patch,rfc] binary operators on integers

2000-09-20 Thread Marko Kreen
Well, I was interested in binary operators on integers and as Peter suggested that I should look into it myself, so I did it. Choice of operators: ~ - not & - and # - xor - I like it :) | - or Things I am unsure of: 1) Precedence. I quite nonscientifically hacked in gram.y, and could

Re: [HACKERS] Solution for RI permission problem

2000-09-20 Thread Stephan Szabo
As a question, since I don't have a source tree available here at work, will there be an issue if an elog occurs between the various two user id sets? Just wondering, because most of those statements are do some SPI thing or elog. Stephan Szabo [EMAIL PROTECTED] On Wed, 20 Sep 2000, Peter Eis

Re: [HACKERS] loss of portability in ecpg

2000-09-20 Thread Peter Eisentraut
Tom Lane writes: > Current ecpg sources will not build on a compiler that doesn't accept > "long long int". They are also overly optimistic about the prospects > of having strtoull() in libc. I think some autoconf work is needed > here. Will look. -- Peter Eisentraut [EMAIL PROTECTED]

Re: [HACKERS] Timezone discrepancies

2000-09-20 Thread Peter Eisentraut
Thomas Lockhart writes: > Peter, will you be doing more work on configuration? If so, could we > implement --enable-australian-zones (or something similar) which sets > the internal USE_AUSTRALIAN_RULES parameter? Will do. -- Peter Eisentraut [EMAIL PROTECTED] http://yi.org/peter-e

Re: [HACKERS] -S is missing in postgresql.conf?

2000-09-20 Thread Peter Eisentraut
Tatsuo Ishii writes: > It seems -S option for postmaster (detaching ttys) does not exist in > postgresql.conf. Is there any reason for this? It has been declared evil, because it loses the log output. Using shell redirection, or better yet pg_ctl is the way to go. -- Peter Eisentraut [EMA

Re: [HACKERS] Cascade delete views?

2000-09-20 Thread Peter Eisentraut
Philip Warner writes: > Doing the following: > > create table test (f1 int); > create view v_test as select f1+1 as f11 from test; > drop table test; > > then selecting from the view results in: > > ERROR: Relation 'test' does not exist > > which is fine. If you peak into th

[HACKERS] Solution for RI permission problem

2000-09-20 Thread Peter Eisentraut
Here's what I've come up with to avoid "permission denied" errors when a RI trigger has to lock a PK table. Whenever the SELECT FOR UPDATE is executed I temporarily switch the current user id to the owner of the PK table. It's not the grand unified solution via setuid functions that was envision

[HACKERS] Improved regression test driver

2000-09-20 Thread Peter Eisentraut
I wanted to add a few features and fix a few bugs in the regression test driver, and I ended up re-writing most of it. I'd like to offer it for testing. Features/fixes: * Use one driver script for both standalone test and test against running installation. * Also use only one script for both

[HACKERS] error with COPY

2000-09-20 Thread Jerome Raupach
COPY tr FROM 'file' USING DELIMITERS '/'; Run-time exception error; current exception: RWBoundsErr No handler for exception. anyone can explain me? Thanks.

[HACKERS] loss of portability in ecpg

2000-09-20 Thread Tom Lane
Current ecpg sources will not build on a compiler that doesn't accept "long long int". They are also overly optimistic about the prospects of having strtoull() in libc. I think some autoconf work is needed here. regards, tom lane

Re: [HACKERS] Timezone discrepancies

2000-09-20 Thread Thomas Lockhart
(Cleaning up mail, and I don't see a reply to this...) > Here are a few apparent discrepencies between pg7.0beta3 and the timezone > documentation... > 1) Unrecognized timezones claimed in the docs: > ERROR: Bad timestamp external representation '1-1-2000 00:00:00 DST' > ERROR: Bad timestamp e

Re: [HACKERS] 7.0.2 crash, backtrace with debug available

2000-09-20 Thread Tom Lane
Alfred Perlstein <[EMAIL PROTECTED]> writes: > I posted earlier this week about a table of ours getting corrupted > after some time. The table looks like this: > ... > After a while we get this crash apparently, followed by crashes of any > backend that scans this table, not updating this specifi

Re: [HACKERS] 7.0.2 crash, backtrace with debug available

2000-09-20 Thread Alfred Perlstein
* Alfred Perlstein <[EMAIL PROTECTED]> [000920 06:19] wrote: > There's two tracebacks of crashed 7.0.2 backends at the end of this > email. Sorry, a couple more things I should have included: I'm running with a ~256 shared memory segment: DAEMON=/usr/local/pgsql/bin/postmaster DATA=/vol/amrd0/d

[HACKERS] PG crashes on query

2000-09-20 Thread Louis-David Mitterrand
This (invalid) query crashes the 7.0.2 backend: auction=# SELECT (select max(b.lot)) as last_lot,auction_status(a.id) > 0 AS current, a.lot, a.person_id, next_price(a.id), seller.mail AS seller_mail, buyer.mail AS buyer_mail, seller.locale AS seller_locale, buyer.login AS buyer_login, num_bid(a

[HACKERS] Debian Bug#72084: Broken permissions required with foreign keys (fwd)

2000-09-20 Thread Oliver Elphick
I've seen mention of this on the list, but I can't see it mentioned in TODO from current CVS. --- Forwarded Message Date:Wed, 20 Sep 2000 11:17:52 +0200 From:Martijn van de Streek <[EMAIL PROTECTED]> To: [EMAIL PROTECTED] Subject: Bug#72084: Broken permissions required with fore

[HACKERS] 7.0.2 crash, backtrace with debug available

2000-09-20 Thread Alfred Perlstein
There's two tracebacks of crashed 7.0.2 backends at the end of this email. I posted earlier this week about a table of ours getting corrupted after some time. The table looks like this: details: id | integer | attr_type | varchar(32) | attr_name | varchar(32) | attr_vers |