Re: [GENERAL] PgSql on Vista?

2007-03-16 Thread Bertram Scharpf
Hi, Am Donnerstag, 15. Mär 2007, 15:38:56 +0100 schrieb A. Kretschmer: > am Wed, dem 14.03.2007, um 1:24:01 -0700 mailte Arkan folgendes: > > have anybody installed PgSQL on Windows Vista? [...] > > Someone write this about vista: > > 1. Disable UAC > 2. EnableAdministrator account > 3. Login

Re: [GENERAL] exception handling in plperlu

2007-03-16 Thread hubert depesz lubaczewski
On 3/16/07, Jasbinder Singh Bali <[EMAIL PROTECTED]> wrote: just wondeng why doesn't it let me put my $dbh=DBI->connect("dbi:Pg:dbname=dbunmask; host=192.168.0.120; port=5432;", "", ""); in eval you dont need to put ->connect in eval. just set connect option 'raiseerror' to 0 (and printerror as

Re: [GENERAL] Practical question.

2007-03-16 Thread hubert depesz lubaczewski
On 3/16/07, louis gonzales <[EMAIL PROTECTED]> wrote: I want to write a statement-level trigger - one that happens once per statement - such that, immediately after an insert into a table(which gets a unique integer value as an ID from a defined sequence, being the primary key on the table), a ne

Re: [GENERAL] Possible planner bug?

2007-03-16 Thread Tom Lane
Jeff Davis <[EMAIL PROTECTED]> writes: > The planner chooses what looks to me like a very strange plan for this > query: Exactly which PG version is this? regards, tom lane ---(end of broadcast)--- TIP 5: don't forget to inc

Re: [GENERAL] Lifecycle of PostgreSQL releases

2007-03-16 Thread Chris Browne
[EMAIL PROTECTED] (Alvaro Herrera) writes: > Joshua D. Drake escribió: >> Tom Lane wrote: >> > "Joshua D. Drake" <[EMAIL PROTECTED]> writes: >> >> Erik Jones wrote: >> >>> I really hope you meant upgrades to 8.2.x. And, no, it's not worth >> >>> waiting. Upgrade at the soonest available opportuni

[GENERAL] Creation of a read-only role.

2007-03-16 Thread Dmitry Koterov
Hello. When we start using of any replication system (e.g. Slony) we need to create a "read-only" role for access the database. This role must be able to read anything, but should NOT be able to INSERT, UPDATE or DELETE for all database objects. Overall, we need 3 roles: 1. Administrator: can d

Re: [GENERAL] Lifecycle of PostgreSQL releases

2007-03-16 Thread Vivek Khera
On Mar 15, 2007, at 10:22 AM, Alvaro Herrera wrote: He could wait for 8.4 as well, as it will be probably faster and have more features than 8.3. Following your reasoning, one could wait essentially forever. H... precisely the reason my cell phone hasn't been replaced in a long tim

[GENERAL] Possible planner bug?

2007-03-16 Thread Jeff Davis
I have two indexes defined on "syslog_p": "syslog_p_severity_ts_idx" btree (severity, ts) "syslog_p_ts_where_severity_1_idx" btree (ts) WHERE severity = 1 The planner chooses what looks to me like a very strange plan for this query: => explain analyze select * from syslog where severity=1; QUER

Re: [GENERAL] planning issue

2007-03-16 Thread Jonathan Vanasco
On Mar 16, 2007, at 3:48 PM, Jeff Davis wrote: To clarify a little: No clarifcation needed. Joshua Drake's suggestion made perfect sense and I was able to implement in 2 seconds. works like a charm! ETA 2 weeks -> 30mins Thanks to all. // Jonathan Vanasco | - - - - - - - - - - - - -

Re: [GENERAL] planning issue

2007-03-16 Thread Jeff Davis
On Fri, 2007-03-16 at 12:17 -0700, Joshua D. Drake wrote: > > > > QUERY PLAN > > ---

[GENERAL] Oracle-PostgreSQL Coexistence/Interoperability (segue from PostgreSQL to Oracle)

2007-03-16 Thread Reece Hart
On Fri, 2007-03-16 at 14:20 -0400, Jonah H. Harris wrote: > As Ezequias asked about migrating an application, I'm not quite sure > why we're discussing this. Using HSODBC to move data permanently is > quite good assuming you have no data type issues. I missed the OP and therefore the link to ap

Re: [GENERAL] PostgreSQL 8.2.3 VACUUM Timings/Performance

2007-03-16 Thread Erik Jones
On Mar 16, 2007, at 2:06 PM, Bruce McAlister wrote: Hi All, Okay, I'm getting a little further now. I'm about to create entries in the pg_autovacuum system tables. However, I'm a little confused as to how I go about finding out the OID value of the tables. The pg_autovacuum table requires

Re: [GENERAL] planning issue

2007-03-16 Thread Joshua D. Drake
> > QUERY PLAN > - > > Seq Scan on table_a (cost=

[GENERAL] planning issue

2007-03-16 Thread Jonathan Vanasco
if you have time, could you offer advice on this: i'm doing a database cleanup right now -- 1.4M records -- and each query is taking 1 second i can't really wait 2 weeks for this to finish , so I'm hoping that someone will be able to help out the issue is that the planner keeps doing a se

Re: [GENERAL] PostgreSQL 8.2.3 VACUUM Timings/Performance

2007-03-16 Thread Bruce McAlister
Hi All, Okay, I'm getting a little further now. I'm about to create entries in the pg_autovacuum system tables. However, I'm a little confused as to how I go about finding out the OID value of the tables. The pg_autovacuum table requires the OID of the table you want to create settings for (vac

Re: [GENERAL] [SQL] PostgreSQL to Oracle

2007-03-16 Thread Jonah H. Harris
On 3/16/07, David Fetter <[EMAIL PROTECTED]> wrote: DBI-Link has a way to push predicates to the remote side, ... As Ezequias asked about migrating an application, I'm not quite sure why we're discussing this. Using HSODBC to move data permanently is quite good assuming you have no data type

Re: [GENERAL] [SQL] PostgreSQL to Oracle

2007-03-16 Thread David Fetter
On Fri, Mar 16, 2007 at 10:18:56AM -0700, Reece Hart wrote: > On Thu, 2007-03-15 at 16:20 -0400, Robert Treat wrote: > > Do you find [HSODBC] works well? I've used it from some older > > Oracle instances connecting back into PostgreSQL and the results I > > had have been flakey at best. > > - The

Re: [GENERAL] [SQL] PostgreSQL to Oracle

2007-03-16 Thread Reece Hart
On Thu, 2007-03-15 at 16:20 -0400, Robert Treat wrote: > Do you find [HSODBC] works well? I've used it from some older Oracle > instances connecting back into PostgreSQL and the results I had have > been flakey at best. For us too. We tried in early 2006 with Oracle 8 via hsodbc to postgresql 7.4

[GENERAL] Bug in CREATE/DROP TABLESPACE command

2007-03-16 Thread William Garrison
On Windows Server 2003, if you create a tablespace to a location that doesn't exist, then try to remove that tablespace, you get an error that pg_tblspc/# does not exist. It appears that postgres created the tablespace internally, but not the folder. When you try to drop the tablespace, t

Re: [GENERAL] exception handling in plperlu

2007-03-16 Thread Randal L. Schwartz
> "Douglas" == Douglas McNaught <[EMAIL PROTECTED]> writes: Douglas> my $dbh; Douglas> eval { $dbh = connect(...) }; Since eval returns its value (or undef if $@ has the error), you can shorten this to: my $dbh = eval { DBI->connect(...) }; and now either look at $@ (if you want to disting

Re: [GENERAL] pg_dumpall and version confusion

2007-03-16 Thread Tom Lane
Tony Caduto <[EMAIL PROTECTED]> writes: > I don't think the whole --output-version thing would be a good idea > either, but it would be a simple matter to add some logic for the > GRANT ON SEQUENCE, which seems to be the only thing that is really > causing problems at least between 8.1 and 8.2.

Re: [GENERAL] pg_dumpall and version confusion

2007-03-16 Thread Tony Caduto
Joshua D. Drake wrote: other deficiencies let's not add to complexity by having an --output-version. If you want that, create a wrapper program that calls to different statically compiled versions of pg_dump. Joshua D. Drake I am afraid that I have to agree with Tom here. Pg_dump has plent

Re: [GENERAL] exception handling in plperlu

2007-03-16 Thread Douglas McNaught
"Jasbinder Singh Bali" <[EMAIL PROTECTED]> writes: > just wondeng why doesn't it let me put > my $dbh=DBI->connect("dbi:Pg:dbname=dbunmask; host=192.168.0.120; port=5432;", > "", ""); > in eval > > says > Global symbol "$dbh" requires explicit package name at line used> The my() variable goes ou

Re: [GENERAL] exception handling in plperlu

2007-03-16 Thread Martijn van Oosterhout
On Fri, Mar 16, 2007 at 10:54:49AM -0400, Jasbinder Singh Bali wrote: > just wondeng why doesn't it let me put > my $dbh=DBI->connect("dbi:Pg:dbname=dbunmask; host=192.168.0.120; > port=5432;", "", ""); > in eval > > says > Global symbol "$dbh" requires explicit package name at line is used> Wel

Re: [GENERAL] exception handling in plperlu

2007-03-16 Thread Adam Rich
You'll want something like this: my $dbh = eval { DBI->connect();}; -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Jasbinder Singh Bali Sent: Friday, March 16, 2007 9:55 AM To: Martijn van Oosterhout; Tom Lane; pgsql-general@postgresql.org Subje

Re: [GENERAL] exception handling in plperlu

2007-03-16 Thread A.M.
On Mar 16, 2007, at 10:54 , Jasbinder Singh Bali wrote: just wondeng why doesn't it let me put my $dbh=DBI->connect("dbi:Pg:dbname=dbunmask; host=192.168.0.120; port=5432;", "", ""); in eval says Global symbol "$dbh" requires explicit package name at line ever dbh is used> There is a ma

Re: [GENERAL] simple coordinate system

2007-03-16 Thread Robin Ericsson
On 3/16/07, Tom Lane <[EMAIL PROTECTED]> wrote: "Robin Ericsson" <[EMAIL PROTECTED]> writes: > Yes, I've looked at those, I was thinking that point looked like a > good type, but it's only 2d, so maybe I need a hint on how to use this > in a 3d environment. Yeah, the built-in geometric types are

Re: [GENERAL] exception handling in plperlu

2007-03-16 Thread Jasbinder Singh Bali
just wondeng why doesn't it let me put my $dbh=DBI->connect("dbi:Pg:dbname=dbunmask; host=192.168.0.120; port=5432;", "", ""); in eval says Global symbol "$dbh" requires explicit package name at line Jas On 3/16/07, Martijn van Oosterhout wrote: On Thu, Mar 15, 2007 at 10:06:06PM -0400, Jas

Re: [GENERAL] PgSql on Vista?

2007-03-16 Thread Brandon Aiken
It's about $20,000 cheaper than ISO (ISA? IEC? One of those TLAs.) certification. Industrial engineering. CSIA is industrial control certification: http://www.controlsys.org/ -- Brandon Aiken CS/IT Systems Engineer -Original Message- From: Joshua D. Drake [mailto:[EMAIL PROTECTED] Sent

Re: [GENERAL] simple coordinate system

2007-03-16 Thread Tom Lane
"Robin Ericsson" <[EMAIL PROTECTED]> writes: > Yes, I've looked at those, I was thinking that point looked like a > good type, but it's only 2d, so maybe I need a hint on how to use this > in a 3d environment. Yeah, the built-in geometric types are all 2D. If you need 3D, perhaps PostGIS can help

Re: [GENERAL] Practical question.

2007-03-16 Thread James Neff
louis gonzales wrote: Is it better to have 1 monolithic table and have to search it, or small individual tables but many of them? Ron Johnson wrote: Yes, 1 large table. This is what RDMS were designed for. ---(end of broadcast)--- TIP 1: if p

Re: [GENERAL] pg_dump warning format?

2007-03-16 Thread Erik Jones
On Mar 15, 2007, at 9:08 PM, Tom Lane wrote: Erik Jones <[EMAIL PROTECTED]> writes: Basically I need a way for my script to know if it needs to abort because there were issues with the dump before it follows through with the drop db... Well, just checking the exit status from pg_dump ought to

Re: [GENERAL] Practical question.

2007-03-16 Thread Joshua D. Drake
louis gonzales wrote: > Actually, there will be creation of 2 new tables for each insert on > 'primary' table, so for 10K records, we would have 20K tables. Those > tables each will never grow more than a few records each. > > Is it better to have 1 monolithic table and have to search it, or smal

Re: [GENERAL] PgSql on Vista?

2007-03-16 Thread Joshua D. Drake
Brandon Aiken wrote: > Actually the only reason we have an email disclaimer is for CSIA > compliance. We know they have a highly dubious legal standing, but, > hey, it's what the auditors require. google CSIA turns up a bunch of stuff. what is it exactly? > > -- > Brandon Aiken > CS/IT Systems

Re: [GENERAL] Lifecycle of PostgreSQL releases

2007-03-16 Thread Christopher Browne
In an attempt to throw the authorities off his trail, [EMAIL PROTECTED] ("Joshua D. Drake") transmitted: >>> There is zero question that 8.2 is faster than 7.4 *but* if 7.4 isn't >>> slow for them... Note, that I meant no reason for him to upgrade 7.4 >>> *right now*. He could wait for 8.3. (I thi

Re: [GENERAL] PgSql on Vista?

2007-03-16 Thread Brandon Aiken
Actually the only reason we have an email disclaimer is for CSIA compliance. We know they have a highly dubious legal standing, but, hey, it's what the auditors require. -- Brandon Aiken CS/IT Systems Engineer -Original Message- From: Konrad Neuwirth [mailto:[EMAIL PROTECTED] Sent: Frida

Re: [GENERAL] Practical question.

2007-03-16 Thread louis gonzales
Actually, there will be creation of 2 new tables for each insert on 'primary' table, so for 10K records, we would have 20K tables. Those tables each will never grow more than a few records each. Is it better to have 1 monolithic table and have to search it, or small individual tables but many

Re: [GENERAL] Lifecycle of PostgreSQL releases

2007-03-16 Thread Christopher Browne
In an attempt to throw the authorities off his trail, [EMAIL PROTECTED] (Erik Jones) transmitted: > On Mar 14, 2007, at 6:17 PM, CAJ CAJ wrote: > > > Hello, > > What is the lifecycle of a 8.0/8.1/8.2 releases? With 8.3 scheduled to > be released in July, what will be the stat

Re: [GENERAL] pg_dumpall and version confusion

2007-03-16 Thread Joshua D. Drake
Dave Page wrote: > >> --- Original Message --- >> From: "Joshua D. Drake" <[EMAIL PROTECTED]> >> To: Dave Page <[EMAIL PROTECTED]> >> Sent: 15/03/07, 23:51:18 >> Subject: Re: [GENERAL] pg_dumpall and version confusion >> >> If you want that, create a wrapper program that calls to different

Re: [GENERAL] Column does not exist when trying to insert data.

2007-03-16 Thread Adrian Klaver
On Thursday 15 March 2007 9:52 pm, Parthan SR wrote: > Hello, > > My table 'orderitems' looks like this > > create table orderitem ( > id serial not null primary key, > item integer not null, > quantity numeric(6,2) not null, > unit varchar(10), > conference integer not null, > seller integer not n

Re: [GENERAL] pg_dumpall and version confusion

2007-03-16 Thread Dave Page
Jorge Godoy wrote: > "Dave Page" <[EMAIL PROTECTED]> writes: > >>> --- Original Message --- >>> From: "Joshua D. Drake" <[EMAIL PROTECTED]> >>> To: Dave Page <[EMAIL PROTECTED]> >>> Sent: 15/03/07, 23:51:18 >>> Subject: Re: [GENERAL] pg_dumpall and version confusion >>> >>> If you want tha

Re: [GENERAL] Is This A Set Based Solution?

2007-03-16 Thread Jorge Godoy
Tino Wildenhain <[EMAIL PROTECTED]> writes: > Show me a user which really clicks on 1000 or more checkboxes on a > webpage or similar ;) > I'd think around 20 values is plenty. On the other hand, show me a page with 1000 or more checkboxes to be clicked at once and I'd show a developer / designer

Re: [GENERAL] pg_dumpall and version confusion

2007-03-16 Thread Jorge Godoy
"Dave Page" <[EMAIL PROTECTED]> writes: >> --- Original Message --- >> From: "Joshua D. Drake" <[EMAIL PROTECTED]> >> To: Dave Page <[EMAIL PROTECTED]> >> Sent: 15/03/07, 23:51:18 >> Subject: Re: [GENERAL] pg_dumpall and version confusion >> >> If you want that, create a wrapper program t

Re: [GENERAL] exception handling in plperlu

2007-03-16 Thread Martijn van Oosterhout
On Thu, Mar 15, 2007 at 10:06:06PM -0400, Jasbinder Singh Bali wrote: > How about using a try catch block? > isn't that more efficient that eval? Umm, eval is perl's equivalent of try/catch. There is no other way. Have a nice day, -- Martijn van Oosterhout http://svana.org/kleptog/ > From e

[GENERAL] Dump a function

2007-03-16 Thread Dany DeBontridder
Hello, I'm working a lot with psql and plpgsql, I have a project based on psql and for the developpement I often need to "dump" a function, it is not really possible with psql because you don't have correctly the parameter. So I've made a patch for pg_dump which permit to dump all the functions

Re: [GENERAL] Practical question.

2007-03-16 Thread Ron Johnson
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 03/15/07 22:14, louis gonzales wrote: > Hello List, > I want to write a statement-level trigger - one that happens once per > statement - such that, immediately after an insert into a table(which > gets a unique integer value as an ID from a defined

Re: [GENERAL] simple coordinate system

2007-03-16 Thread Robin Ericsson
On 3/15/07, Webb Sprague <[EMAIL PROTECTED]> wrote: http://www.postgresql.org/docs/8.2/static/datatype-geometric.html Have you looked at these yet? If not, you asked your question prematurely and should have read the docs. If so, in what respect do they not work for you? Yes, I've looked at

Re: [GENERAL] Is This A Set Based Solution?

2007-03-16 Thread Tino Wildenhain
Bruno Wolff III schrieb: On Mon, Mar 12, 2007 at 11:15:01 -0700, Stefan Berglund <[EMAIL PROTECTED]> wrote: I have an app where the user makes multiple selections from a list. I can either construct a huge WHERE clause such as SELECT blah blah FROM foo WHERE (ID = 53016 OR ID = 27 OR ID = 292

Re: [GENERAL] Column does not exist when trying to insert data.

2007-03-16 Thread Richard Huxton
Parthan SR wrote: I get the following error in the browser, whent he fields for unit and returnedas are left blank and hence becomes None. I also tried to have some string value such as 'nos' and 'not reqd' for 'unit' and 'requiredas' but still it get a similar error saying column 'nos' does not

Re: [GENERAL] pg_dumpall and version confusion

2007-03-16 Thread Dave Page
> --- Original Message --- > From: "Joshua D. Drake" <[EMAIL PROTECTED]> > To: Dave Page <[EMAIL PROTECTED]> > Sent: 15/03/07, 23:51:18 > Subject: Re: [GENERAL] pg_dumpall and version confusion > > If you want that, create a wrapper program that calls to different > statically compiled v