[GENERAL] Trigger disactivation and SELECT WAITING

2005-07-26 Thread Philippe Lang
Hi, I have a database with views that can take up to 2 hours to be calculated. During that time, it's not possible to run a function that inserts data into the database, apparently because this function disactivates a trigger while it runs, by deleting and creating the trigger again at the end. (

Re: [GENERAL] constraint problem

2005-07-26 Thread Martín Marqués
El Lun 25 Jul 2005 23:29, Stephan Szabo escribió: > > > > Now to the constraint: > > > > I don't want the login and password columns to have nulls when the account > > (row) is confirmed (confirmed column is set to true). > > > > I tried adding this CONSTRAINT to the table definition, but with no l

[GENERAL] Error when entering template1

2005-07-26 Thread Riyad Aufari
I have been using postgresql (7.2.1-5) for several years. Supprisingly, I've just got a problem when doing pg_dumpall. The error is : psql: ERROR: getTypeOutputInfo: Cache lookup of type 0 failed This error also occurs when i enter to postgres using this command: psql template1 User which i us

[GENERAL] Hardware suggestions for a new data warehouse Postgresql/Bizgres server? (£6000)

2005-07-26 Thread Filip Wuytack
Hi All, I've been lurking at both the bizgres and postgres mailing lists in recent months to get some ideas for building a new db server. I saw some threads on the 7k$ server and it sounds like the Opteron, lots of ram and raid10 is the way to go. (my budget is +/- £6000 (=$1)) But I'm keen

Re: [GENERAL] Trigger disactivation and SELECT WAITING

2005-07-26 Thread Tom Lane
"Philippe Lang" <[EMAIL PROTECTED]> writes: > I have a database with views that can take up to 2 hours to be > calculated. > During that time, it's not possible to run a function that inserts data > into the database, apparently because this function disactivates a > trigger while it runs, by dele

[GENERAL] Access FE - This operation is not supported within transaction

2005-07-26 Thread Sim Zacks
I am using an Access front end to a PG 8.0 backend using linked tables. When I use referential integrity it gives me the error: This operation is not supported within transactions This error occurs when referential integrity is used for both Cascade and restrict Delete. It actually does the

Re: [GENERAL] Error when entering template1

2005-07-26 Thread Tom Lane
Riyad Aufari <[EMAIL PROTECTED]> writes: > I have been using postgresql (7.2.1-5) for several > years. Supprisingly, I've just got a problem when > doing pg_dumpall. > The error is : > psql: ERROR: getTypeOutputInfo: Cache lookup of type > 0 failed > This error also occurs when i enter to postgre

[GENERAL]

2005-07-26 Thread Sutha
dear sir, could u plz. tell me that can i  interface postgreSql as a backend with the front end Visual basic6.0?and give me idea that how can i do that?   thanks & regards sutha

Re: [GENERAL] Access FE - This operation is not supported within transaction

2005-07-26 Thread Tom Lane
"Sim Zacks" <[EMAIL PROTECTED]> writes: > I am using an Access front end to a PG 8.0 backend using linked tables. > When I use referential integrity it gives me the error: > This operation is not supported within transactions There is no such error message within Postgres itself, so I suppose Acce

[GENERAL] Bad plan when null is in an "in" list

2005-07-26 Thread Csaba Nagy
Hi all, Jumping in directly to the subject, this is what I get: explain SELECT bigint_col_1, bigint_col_2 FROM big_table WHERE bigint_col_2 in (12132131, null, null, null, null); QUERY PLAN --- Seq Scan

Re: [GENERAL]

2005-07-26 Thread Richard Huxton
Sutha wrote: > dear sir, could u plz. tell me that can i interface postgreSql as a > backend with the front end Visual basic6.0?and give me idea that how > can i do that? http://www.postgresql.org/download/ There are various Windows-related drivers there including ODBC. However, if you weren't

Re: [GENERAL] Access FE - This operation is not supported within

2005-07-26 Thread Richard Huxton
Sim Zacks wrote: I am using an Access front end to a PG 8.0 backend using linked tables. When I use referential integrity it gives me the error: This operation is not supported within transactions This error occurs when referential integrity is used for both Cascade and restrict Delete. It actua

Re: [GENERAL] Trigger disactivation and SELECT WAITING

2005-07-26 Thread Philippe Lang
Hi, I meant: in 7.4.X databases, is there a way of disabling a trigger without deleting it? I guess the answer is no. That's what my plpgsql insert function does, and because of this, if a view is running at the same moment on the same tables (some views can take up to 2 hours to be calculated

Re: [GENERAL] pgsql client/server compatibility matrix?

2005-07-26 Thread Scott Marlowe
On Mon, 2005-07-25 at 22:02, Tom Lane wrote: > Scott Marlowe <[EMAIL PROTECTED]> writes: > > On Mon, 2005-07-25 at 16:56, Martijn van Oosterhout wrote: > >> pg_dump should be able to dump any older version. It's a bug otherwise. > > > But FYI that backwards compatibility was introduced around 7.3

Re: [GENERAL] pgsql client/server compatibility matrix?

2005-07-26 Thread Tom Lane
Scott Marlowe <[EMAIL PROTECTED]> writes: > On Mon, 2005-07-25 at 22:02, Tom Lane wrote: >> pg_dump believes it can dump from any server back to 7.0; if it can't, >> that's a bug, and details would be appreciated. > I thought the backwards dumping compatibility thing was fairly new (i.e. > it show

Re: [GENERAL] RAMFS with Postgres

2005-07-26 Thread Marco Colombo
On Fri, 2005-07-22 at 15:56 +0100, Alex Stapleton wrote: > On 21 Jul 2005, at 17:02, Scott Marlowe wrote: > > > On Thu, 2005-07-21 at 02:43, vinita bansal wrote: > > > >> Hi, > >> > >> My application is database intensive. I am using 4 processes since > >> I have 4 > >> processeors on my box. Th

[GENERAL] transaction timeout

2005-07-26 Thread Dr NoName
Hi all, I have been quite satisfied with the level of support from the PostgreSQL community, but this time I'm getting nothing. So, is transaction timeout option planned at all? What's the alternative solution to a client that's hung in transaction? thanks, Eugene _

Re: [GENERAL] pgsql client/server compatibility matrix?

2005-07-26 Thread Scott Marlowe
On Tue, 2005-07-26 at 09:26, Tom Lane wrote: > Scott Marlowe <[EMAIL PROTECTED]> writes: > > On Mon, 2005-07-25 at 22:02, Tom Lane wrote: > >> pg_dump believes it can dump from any server back to 7.0; if it can't, > >> that's a bug, and details would be appreciated. > > > I thought the backwards d

Re: [GENERAL] transaction timeout

2005-07-26 Thread Alvaro Herrera
On Tue, Jul 26, 2005 at 07:40:30AM -0700, Dr NoName wrote: > So, is transaction timeout option planned at all? > What's the alternative solution to a client that's hung in > transaction? Forcibly end it? -- Alvaro Herrera () "I dream about dreams about dreams", sang the nightingale under the p

[GENERAL] Re: Hardware suggestions for a new data warehouse Postgresql/Bizgres server? (£6000)

2005-07-26 Thread Vivek Khera
On Jul 26, 2005, at 7:35 AM, Filip Wuytack wrote: I've been lurking at both the bizgres and postgres mailing lists in recent months to get some ideas for building a new db server. I saw some threads on the 7k$ server and it sounds like the Opteron, lots of ram and raid10 is the way to go.

Re: [GENERAL] transaction timeout

2005-07-26 Thread Dr NoName
Yeah, that's what we have to resort to now, but that's not a solution. Until we kill the client, the entire database is locked (or, at least the tables that other clients need to write to, which is effectively the same thing). This is annoying enough during the week but it's especially a problem on

Re: [GENERAL] transaction timeout

2005-07-26 Thread Michael Fuhr
On Tue, Jul 26, 2005 at 07:40:30AM -0700, Dr NoName wrote: > > I have been quite satisfied with the level of support > from the PostgreSQL community, but this time I'm > getting nothing. There have been a couple of replies to your post, although perhaps not what you were hoping for: http://archi

Re: [GENERAL] [Bizgres-general] Hardware suggestions for a new data

2005-07-26 Thread Luke Lonergan
Filip, On 7/26/05 4:35 AM, "Filip Wuytack" <[EMAIL PROTECTED]> wrote: > Hi All, > > I've been lurking at both the bizgres and postgres mailing lists in recent > months to get some ideas for building a new db server. I saw some threads on > the 7k$ server and it sounds like the Opteron, lots of r

Re: [GENERAL] Trigger disactivation and SELECT WAITING

2005-07-26 Thread Janning Vygen
Am Dienstag, 26. Juli 2005 16:07 schrieb Philippe Lang: > Hi, > > I meant: in 7.4.X databases, is there a way of disabling a trigger without > deleting it? I guess the answer is no. > > That's what my plpgsql insert function does, and because of this, if a view > is running at the same moment on th

Re: [GENERAL] transaction timeout

2005-07-26 Thread Scott Marlowe
On Tue, 2005-07-26 at 09:40, Dr NoName wrote: > Hi all, > > I have been quite satisfied with the level of support > from the PostgreSQL community, but this time I'm > getting nothing. So, is transaction timeout option > planned at all? What's the alternative solution to a > client that's hung in t

[GENERAL] Please help: Running Win2k with CP1252 codepage

2005-07-26 Thread Josef Springer
Hi anybody, i a running PostgreSQL on Win2k and use PostgreSQL in my application via an ODBC bridge. In my aplication i create a database with default (SQL-ASCII) encoding, strings containing vovels can be saved, but not read correctly. I have created a database with WIN1250, WIN and UNIC

Re: [GENERAL] transaction timeout

2005-07-26 Thread Scott Marlowe
On Tue, 2005-07-26 at 10:33, Dr NoName wrote: > Yeah, that's what we have to resort to now, but that's > not a solution. Until we kill the client, the entire > database is locked (or, at least the tables that other > clients need to write to, which is effectively the > same thing). This is annoying

Re: [GENERAL] transaction timeout

2005-07-26 Thread Alvaro Herrera
On Tue, Jul 26, 2005 at 08:33:19AM -0700, Dr NoName wrote: > A single client should not be able to bring the entire > database down. The DB should recognize that the client > went down and roll back the transaction. That would be > the ideal solution. Anything else we can do to remedy > the situat

Re: [GENERAL] transaction timeout

2005-07-26 Thread Dr NoName
> What's the client doing that takes locks strong > enough to "lock up > the entire database"? Why does the client hang? yeah, good question. I thought postgres uses better-than-row-level locking? Could the total deadlock be caused by a combination of an open transaction and VACUUM FULL that run

[GENERAL] dropping non-existent tables

2005-07-26 Thread Walsh, Richard (Richard)
Hi, I have a problem in that I need to drop non-existent tables in a DDL script. This is in order that the script can re-build a database schema if the tables already exist. However, in Postgres this is proving to be a problem because if the table does not exist then the DDL execution will s

Re: [GENERAL] transaction timeout

2005-07-26 Thread Dr NoName
> OK, for the third or fourth time, what kind of locks > is your application > taking out that can lock the whole database? I'd like to know that myself. How can a select/inser/update lock an entire table or even multiple tables? > How, exactly, can PostgreSQL (or any other database) > recognize

Re: [GENERAL] transaction timeout

2005-07-26 Thread Dr NoName
> On Tue, Jul 26, 2005 at 08:33:19AM -0700, Dr NoName > wrote: > > > A single client should not be able to bring the > entire > > database down. The DB should recognize that the > client > > went down and roll back the transaction. That > would be > > the ideal solution. Anything else we can do to

Re: [GENERAL] transaction timeout

2005-07-26 Thread Dr NoName
> The common view on this kind of thing is that if > your client is broken, > you need to fix it. The problem is, we can't fix the users, nor can we fix other software that our client has to interact with. There will always be occasional situations when a client gets stuck. > That said, I have se

Re: [GENERAL] transaction timeout

2005-07-26 Thread Scott Marlowe
On Tue, 2005-07-26 at 11:24, Dr NoName wrote: > > The common view on this kind of thing is that if > > your client is broken, > > you need to fix it. > > The problem is, we can't fix the users, nor can we fix > other software that our client has to interact with. > There will always be occasional

Re: [GENERAL] transaction timeout

2005-07-26 Thread Frank L. Parks
TIP 2: Don't 'kill -9' the postmaster Dr NoName wrote: The common view on this kind of thing is that if your client is broken, you need to fix it. The problem is, we can't fix the users, nor can we fix other software that our client has to interact with. There will always be occasional

[GENERAL] Budget battery-backed ramdisk (Gigabyte i-RAM)

2005-07-26 Thread Richard Huxton
Review http://www.anandtech.com/storage/showdoc.aspx?i=2480 Slashdot http://hardware.slashdot.org/article.pl?sid=05/07/26/1229211&tid=198 Might be useful for those of us working with "budget" systems. If anyone does make a purchase, please post your investigations to the list - I for one wou

[GENERAL] error when using SELECT

2005-07-26 Thread Andrew Stewart
I'm currently trying to install a set of Perl modules that interact with a particular SQL schema (bioperl-db with BioSQL, if anyone is familiar with them), and am running into a problem that appears to be emergent with 8.0.3. I myself am still very new to PostgreSQL, so I'm having trouble tell

Re: [GENERAL] transaction timeout

2005-07-26 Thread Magnus Hagander
> > > That said, I have seen some folks post about writing a > perl or shell > > > script that runs every x minutes looking for connections > that have > > > been idle for > a certain amount of time and kill the backend > > > associated with it (sigterm, not -9...) > > > > what are the implic

Re: [GENERAL] transaction timeout

2005-07-26 Thread Dr NoName
> If you have second database in the cluster is it > still operational when > the main database locks up? we don't have a DB cluster. It would be pretty useless since postgresql doesn't support distributed transactions. > Also it seems that some diagnostics are needed in > the client app to log

Re: [GENERAL] Trigger disactivation and SELECT WAITING

2005-07-26 Thread Tom Lane
"Philippe Lang" <[EMAIL PROTECTED]> writes: > I meant: in 7.4.X databases, is there a way of disabling a trigger without > deleting it? I guess the answer is no. Nothing officially supported, anyway. There's a pg_trigger.tgenabled column but I'm not sure which operations pay attention to it. >

Re: [GENERAL] transaction timeout

2005-07-26 Thread Scott Marlowe
On Tue, 2005-07-26 at 12:41, Magnus Hagander wrote: > > > > That said, I have seen some folks post about writing a > > perl or shell > > > > script that runs every x minutes looking for connections > > that have > > > > been idle for > a certain amount of time and kill the backend > > > > asso

Re: [GENERAL] transaction timeout

2005-07-26 Thread Magnus Hagander
> > > > > That said, I have seen some folks post about writing a > > > perl or shell > > > > > script that runs every x minutes looking for connections > > > that have > > > > > been idle for > a certain amount of time and kill the backend > > > > > associated with it (sigterm, not -9...) > > > >

Re: [GENERAL] transaction timeout

2005-07-26 Thread Scott Marlowe
On Tue, 2005-07-26 at 12:51, Dr NoName wrote: > > If you have second database in the cluster is it > > still operational when > > the main database locks up? > > we don't have a DB cluster. It would be pretty useless > since postgresql doesn't support distributed > transactions. You misunderstoo

Re: [GENERAL] error when using SELECT

2005-07-26 Thread Tom Lane
Andrew Stewart <[EMAIL PROTECTED]> writes: > I myself am still very new to PostgreSQL, so I'm having trouble telling > if there is anything wrong with the postgres transaction that is being > attempted by the bioperl-db maketest. The verbose error output is as > follows... > preparing SELECT

Re: [GENERAL] transaction timeout

2005-07-26 Thread Dr NoName
> You misunderstood his point. In PostgreSQL > parlance, a "cluster" is a > single postmaster running on a single machine, with > 1 or more > databases. So, what he wanted to know was, if your > application is > hitting a database called fred, and you have a spare > database named > wilma, would

Re: [GENERAL]

2005-07-26 Thread Bricklen Anderson
wayne schlemitz wrote: > How do I remove my self from this mail list I have > tried > in the past with no luck. Please sent specific > instructions. > > Wayne >From the web, you could try here: http://www.postgresql.org/community/lists/subscribe and click the "unsubscribe" action. ___

[GENERAL]

2005-07-26 Thread wayne schlemitz
How do I remove my self from this mail list I have tried in the past with no luck. Please sent specific instructions. Wayne __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com -

Re: [GENERAL] transaction timeout

2005-07-26 Thread Tom Lane
Scott Marlowe <[EMAIL PROTECTED]> writes: > On Tue, 2005-07-26 at 12:41, Magnus Hagander wrote: >> The only *safe* way to do it ATM is to restart the database. SIGTERM may >> leave orphaned locks or such things in the system. > Really? I was under the impression that doing a "kill " on > an idle

[GENERAL] Problem with text_pattern_ops

2005-07-26 Thread Joseph Shraibman
I have this index: "directory_lower_username_seg_key" unique, btree (lower(username) text_pattern_ops, seg) ... but my query refuses to use that index. [local]:owl=>explain select * from directory where lower(username) = 'jks@selectacast.net'; QUERY PLAN ---

Re: [GENERAL] [Bizgres-general] Hardware suggestions for a new data

2005-07-26 Thread Simon Riggs
On Tue, 2005-07-26 at 12:35 +0100, Filip Wuytack wrote: > I've been lurking at both the bizgres and postgres mailing lists in recent > months to get some ideas for building a new db server. I saw some threads on > the 7k$ server and it sounds like the Opteron, lots of ram and raid10 is the > way to

Re: [GENERAL] Problem with text_pattern_ops

2005-07-26 Thread Madison Kelly
Joseph Shraibman wrote: I have this index: "directory_lower_username_seg_key" unique, btree (lower(username) text_pattern_ops, seg) ... but my query refuses to use that index. [local]:owl=>explain select * from directory where lower(username) = 'jks@selectacast.net';

Re: [GENERAL] Can't connect after restart

2005-07-26 Thread Audrey Bergeron-Morin
Hi again, I still can't connect. I need someone to tell me what I can try to discover what the problem is. Again, here's the problem: pgSQL 8.0.3 install on WinXP SP1. The install works fine. The DB starts and works until we restart the computer. When the machine reboots, we can't connect to t

[GENERAL] back-end triggers front-end to update

2005-07-26 Thread Adam O'Toole
Hello everyone,I am searching for a way to have my postgresql 7.4.7 backend be triggered to let the front end know there has been a change to the database. If more then one person is connected to the database and person (x) makes a change, I want other clients to then be aware of that, and refresh

Re: [GENERAL] back-end triggers front-end to update

2005-07-26 Thread Scott Marlowe
On Tue, 2005-07-26 at 16:25, Adam O'Toole wrote: > Hello everyone, > I am searching for a way to have my postgresql 7.4.7 backend be > triggered to let the front end know there has been a change to the > database. If more then one person is connected to the database and > person (x) makes a change,

[GENERAL] Rules vs Triggers

2005-07-26 Thread Randall Perry
Read the Rules section of the manual and the section on Rules vs Triggers. >From what I get triggers are necessary for column constraints. As far as speed, it seems there are some differences between how fast rules/triggers would do the same action, but that some complex analysis is involved to de

Re: [GENERAL] back-end triggers front-end to update

2005-07-26 Thread Roman Neuhauser
# [EMAIL PROTECTED] / 2005-07-26 18:25:23 -0300: > Hello everyone,I am > searching for a way to have my postgresql 7.4.7 backend be triggered to let > the front end know there has been a change to the database. If more then one > person is connected to the database and person (x) makes a change,

Re: [GENERAL] Problem with text_pattern_ops

2005-07-26 Thread Joseph Shraibman
Madison Kelly wrote: Joseph Shraibman wrote: What happens if you 'SET enable_seqscan TO OFF' and try the query again? I've had a couple of instances where the planner just doesn't like my index but once it is told to use it I get a nice performance boost. It still does a seqscan. -

Re: [GENERAL] dropping non-existent tables

2005-07-26 Thread Michael Fuhr
On Tue, Jul 26, 2005 at 06:04:08PM +0200, Walsh, Richard (Richard) wrote: > I have a problem in that I need to drop non-existent tables in a DDL > script. This is in order that the script can re-build a database schema > if the tables already exist. However, in Postgres this is proving to be > a pr

Re: [GENERAL] transaction timeout

2005-07-26 Thread Martijn van Oosterhout
On Tue, Jul 26, 2005 at 02:33:04PM -0400, Tom Lane wrote: > Well, it ought to, but I for one don't consider that code path > adequately tested --- and we have seen at least one report (from Rod > Taylor if memory serves) suggesting that there are in fact bugs in it. > > We know that SIGTERM'ing al

Re: [GENERAL] Problem with text_pattern_ops

2005-07-26 Thread Joseph Shraibman
Stephan Szabo wrote: On Tue, 26 Jul 2005, Joseph Shraibman wrote: I have this index: "directory_lower_username_seg_key" unique, btree (lower(username) text_pattern_ops, seg) ... but my query refuses to use that index. text_pattern_ops is an opclass for doing LIKE queries using the index

Re: [GENERAL] Problem with text_pattern_ops

2005-07-26 Thread Stephan Szabo
On Tue, 26 Jul 2005, Joseph Shraibman wrote: > I have this index: > > "directory_lower_username_seg_key" unique, btree (lower(username) > text_pattern_ops, seg) > > ... but my query refuses to use that index. text_pattern_ops is an opclass for doing LIKE queries using the index, I don't believe i

Re: [GENERAL] Problem with text_pattern_ops

2005-07-26 Thread Stephan Szabo
On Tue, 26 Jul 2005, Joseph Shraibman wrote: > > > Stephan Szabo wrote: > > On Tue, 26 Jul 2005, Joseph Shraibman wrote: > > > > > >>I have this index: > >> > >>"directory_lower_username_seg_key" unique, btree (lower(username) > >>text_pattern_ops, seg) > >> > >>... but my query refuses to use tha

Re: [GENERAL] Rules vs Triggers

2005-07-26 Thread Roman Neuhauser
# [EMAIL PROTECTED] / 2005-07-26 17:53:35 -0400: > Read the Rules section of the manual and the section on Rules vs Triggers. > > From what I get triggers are necessary for column constraints. As far as > speed, it seems there are some differences between how fast rules/triggers > would do the sam

Re: [GENERAL] Problem with text_pattern_ops

2005-07-26 Thread Joseph Shraibman
Stephan Szabo wrote: It is for the operators ~<~, ~<=~, ~=~, ~>=~, ~>~ (for like optimization). The docs seem to say that it does a character by character comparison rather than one using the collation thus being better for pattern matching. I'd think letting it do <, <=, =, >=, > would have i

Re: [GENERAL] Problem with text_pattern_ops

2005-07-26 Thread Stephan Szabo
On Tue, 26 Jul 2005, Joseph Shraibman wrote: > Stephan Szabo wrote: > > > It is for the operators ~<~, ~<=~, ~=~, ~>=~, ~>~ (for like optimization). > > The docs seem to say that it does a character by character comparison > > rather than one using the collation thus being better for pattern > > m

Re: [GENERAL] transaction timeout

2005-07-26 Thread Dr NoName
So can anyone suggest a solution that does not involve killing the client when it hangs? thanks, Eugene --- Dr NoName <[EMAIL PROTECTED]> wrote: > > You misunderstood his point. In PostgreSQL > > parlance, a "cluster" is a > > single postmaster running on a single machine, > with > > 1 or more

Re: [GENERAL] transaction timeout

2005-07-26 Thread Paul Tillotson
Dr NoName wrote: What's the client doing that takes locks strong enough to "lock up the entire database"? Why does the client hang? yeah, good question. I thought postgres uses better-than-row-level locking? Could the total deadlock be caused by a combination of an open transaction and