Re: [GENERAL] DBD::Pg behavior for large queries

2005-01-19 Thread Peter Haworth
the cursor/non- cursor cases. My vote would be for a documentation change which mentioned how to use cursors explicitly to avoid excessive memory usage. -- Peter Haworth [EMAIL PROTECTED] Q: Why do ducks have flat feet? A: To stamp out forest fires. Q: Why do elephants h

Re: [GENERAL] Ridiculous load

2004-12-13 Thread Peter Haworth
On Sat, 11 Dec 2004 10:44:59 -0600, Wes wrote: > On 12/9/04 9:23 AM, "Peter Haworth" <[EMAIL PROTECTED]> wrote: > > > It runs RHEL ES v3, kernel 2.4.21-20.ELsmp > > It's generally a very stable box which runs a number of postgresql > > instances. But

[GENERAL] Ridiculous load

2004-12-10 Thread Peter Haworth
locate to these with the move to v7.4? Are there other settings we should be altering? All this is assuming that it's a postgres problem, rather than something else. Another leading candidate is this, which we are looking into: https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=132155 It wo

[GENERAL] Is using cross-version pg_autovacuum possible/safe?

2004-05-19 Thread Peter Haworth
ature we really need immediately. -- Peter Haworth [EMAIL PROTECTED] "There are two ways of constructing a software design. One way is to make it so simple that there are obviously no deficiencies and the other is to make it so complicated that there are no obvious de

Re: [GENERAL] A creepy story about dates. How to prevent it?

2003-06-20 Thread Peter Haworth
Tom Lane writes: > It would make sense to offer a "strict" mode in which the date order > has to be what DateStyle suggests. Something like this? set datestyle='iso,strict'; I could live with that. -- Peter Haworth [EMAIL PROTECTED] AD&D Les

Re: [GENERAL] Perl won't eval PgSQL boolean value

2001-09-05 Thread Peter Haworth
; and 'f'. This means that if you know you're always going to use Postgres (and that DBD::Pg isn't going to change), you can simply say: if($cust_data->{hold}) However, if you want cross-database portability (and protection from DBD::Pg's behaviour changing), you

Re: [GENERAL] do I have a reserved word here or something???

2001-08-15 Thread Peter Haworth
,?,?,?,?) ),{},@env_array{qw(User UserEmail ServiceLevel AccountManager Company)}); 2. my($uname,$email,$level,$mgr,$company)=map $dbh->quote($_), @env_array{qw(User UserEmail ServiceLevel AccountManager Company)}; $dbh->do(qq( insert into env_info (username,useremail,ser

Re: [GENERAL] DBD::Pg 1.00

2001-06-01 Thread Peter Haworth
On Wed, 30 May 2001 12:54:17 -0400, [EMAIL PROTECTED] wrote: > On Wed, May 30, 2001 at 04:02:51PM +0100, Peter Haworth wrote: > > On Wed, 30 May 2001 08:07:11 -0400, [EMAIL PROTECTED] wrote: > > The new behaviour is mre correct. > > > > Why? The old behavior is bette

Re: [GENERAL] DBD::Pg 1.00

2001-05-30 Thread Peter Haworth
statement. That's because previous versions of DBD::Pg had a bug which didn't remove the Active attribute from statement handles which all rows had been fetched from. The new behaviour is mre correct. -- Peter Haworth [EMAIL PROTECTED] "I'm just a mere programmer&qu

Re: [GENERAL] Building DBD::Pg

2001-05-08 Thread Peter Haworth
for multi-line messages */ +for(end = error_msg + len; end > error_msg && end[-1] == '\n'; --end); + src = error_msg; dst = err; /* copy error message without trailing newlines */ -while (*dst != '\0' && *dst != '\n') { +w

Re: [GENERAL] char/varchar conversions

2000-11-15 Thread Peter Haworth
On Wed, 15 Nov 2000 11:19:40 -0500, Tom Lane said: > Peter Haworth <[EMAIL PROTECTED]> writes: > > I'm having trouble getting Postgres 6.5.3 to do what I want. The > > problem seems to be fixed in version 7, but I could really do with a > > workaround for 6.5.

[GENERAL] char/varchar conversions

2000-11-15 Thread Peter Haworth
terminated abnormally before or while processing the request. We have lost the connection to the backend, so further processing is impossible. Terminating. That's obviously too sneaky. -- Peter Haworth [EMAIL PROTECTED] Anything that can go wrong, will go wr

Re: [GENERAL] moving from mySQL to pgsql, need a bit of help (perl)

2000-07-11 Thread Peter Haworth
nstead: while($row=$sth->fetchrow_hashref){ push @taghash,{%$row}; } Or, better yet: $taghash=$sth->fetchall_arrayref({}); to get everything all in one go. -- Peter Haworth [EMAIL PROTECTED] "Master, does Emacs have the Buddha nature?" the novice asked. T

[GENERAL] Using some indexes but not others

2000-02-14 Thread Peter Haworth
jnl_refs_is_2)", but I can't see anything like that in the documentation. -- Peter Haworth [EMAIL PROTECTED] "You're not going to watch the eclipse in yesterday's underpants?"

[GENERAL] Creating simple type aliases

2000-01-20 Thread Peter Haworth
, internallength=9, externallength=9, element='char' ) then insert a row to pg_opclass, after attempting to use the new type to find its ID. Surely there's an easier way? -- Peter Haworth [EMAIL PROTECTED] "Never tell people how to do things. Tell them WHAT