Re: [HACKERS] Intel drops 64-bit Itanium

2003-02-24 Thread cbbrowne
> After failing to make Itanium competitive, Intel is now downplaying > 64-bit CPU's. Of course, they didn't think that until Itanium failed. > Here is the slashdot story: > http://slashdot.org/article.pl?sid=03/02/23/2050237&mode=nested&tid=118 > > Seems AMD's hammer is going to be the popular

Re: [HACKERS] Hard problem with concurrency

2003-02-24 Thread Manfred Koizar
On Mon, 17 Feb 2003 09:51:54 +0800, "Christopher Kings-Lynne" <[EMAIL PROTECTED]> wrote: >Strategy three: > >begin; >lock table in exclusive mode; >update row; >if (no rows affected) insert row; >commit; > >Problem - Works, but this table needs high concurrency. Chris, distributing congestion mig

[HACKERS] Intel drops 64-bit Itanium

2003-02-24 Thread Bruce Momjian
After failing to make Itanium competitive, Intel is now downplaying 64-bit CPU's. Of course, they didn't think that until Itanium failed. Here is the slashdot story: http://slashdot.org/article.pl?sid=03/02/23/2050237&mode=nested&tid=118 Seems AMD's hammer is going to be the popular 64

Re: [HACKERS] [GENERAL] I cant find it or I'm just lazy ?

2003-02-24 Thread Martijn van Oosterhout
On Mon, Feb 24, 2003 at 07:53:05PM +, Darko Prenosil wrote: > I need two answers I did not find in documentation : > > How can I get exact number of rows in DECLARED CURSOR ? > OK, I can FETCH until NULL, but this does not fits my needs ! You need to move to the end of the cursor. When

Re: [HACKERS] ILIKE

2003-02-24 Thread Hannu Krosing
Tom Lane kirjutas E, 24.02.2003 kell 19:30: > Peter Eisentraut <[EMAIL PROTECTED]> writes: > > Hey, I don't want to take your ILIKE away. But at the time it was added > > the claim was that it was for compatibility and now we learn that that was > > wrong. This _is_ a compatibility feature, just

Re: [HACKERS] Linking to "current" docs

2003-02-24 Thread Ian Barwick
On Sunday 23 February 2003 20:52, Dave Page wrote: > > -Original Message- > > From: Ian Barwick [mailto:[EMAIL PROTECTED] > > > > Would it be possible to modify the new docs to provide > > similar functionality? E.g. something like > > http://www.postgresql.org/docs/view.php?version=current

Re: [HACKERS] ILIKE

2003-02-24 Thread Tom Lane
Peter Eisentraut <[EMAIL PROTECTED]> writes: > Josh Berkus writes: >> 4) It's just as indexible (or not indexable) as regexp comparisons, and easier >> to understand for users from the Microsoft world than regexp. > ILIKE is not indexible at all. You are arguing from a false premise. regression=

Re: [HACKERS] ILIKE

2003-02-24 Thread Josh Berkus
Peter, > > 4) It's just as indexible (or not indexable) as regexp comparisons, and > > easier to understand for users from the Microsoft world than regexp. > > ILIKE is not indexible at all. Other forms of pattern comparisons are at > least indexible sometimes. And how is ~* indexable? -- Jo

Re: [HACKERS] ILIKE

2003-02-24 Thread Peter Eisentraut
Josh Berkus writes: > 4) It's just as indexible (or not indexable) as regexp comparisons, and easier > to understand for users from the Microsoft world than regexp. ILIKE is not indexible at all. Other forms of pattern comparisons are at least indexible sometimes. -- Peter Eisentraut [EMAIL

[HACKERS] Possibly inconsistent type casting logic

2003-02-24 Thread Peter Eisentraut
In the old days, when every function of the form foo(bar) was a cast from bar to foo, and if foo and bar happened to be binary compatible, the system short-circuited this function call to do a "zero-effort" cast. This logic still exists, but since in general casts are controlled through pg_cast no

[HACKERS] More outdated examples

2003-02-24 Thread Peter Eisentraut
This example in User's Guide section 7.2 doesn't work anymore at all: tgl=> select @ text '-4.5' as "abs"; abs - 4.5 (1 row) What really happens is this: => select @ text '-4.5' as "abs"; ERROR: Unable to identify a prefix operator '@' for type 'text' You may need to add parenthes

[HACKERS] I cant find it or I'm just lazy ?

2003-02-24 Thread Darko Prenosil
I need two answers I did not find in documentation : How can I get exact number of rows in DECLARED CURSOR ? OK, I can FETCH until NULL, but this does not fits my needs ! How can I get information is TRANSACTION already started ? (TRANSACTION LEVEL) The interface I'm using is libpq.

Re: [HACKERS] ILIKE

2003-02-24 Thread Josh Berkus
Four Reasons to use ILIKE, which have nothing to do with mSQL: 1) It's faster to type than most analagous regexp comparisons, and much faster than comparing two LOWERs or two UPPERS. 2) It's a great operator for comparing two text variables or columns of small tables where you don't want to wor

Re: [HACKERS] request for sql3 compliance for the update command

2003-02-24 Thread Dave Cramer
Given that the direction of the spec seems to be headed towards the desired syntax, can we put this on the TODO list? Dave On Thu, 2003-02-20 at 11:49, Dave Cramer wrote: > Scott, > > I can't find page 858 in that document, is it the right one? > > also the link s/b ? > > ftp://ftp.sqlstandar

Re: [HACKERS] ILIKE

2003-02-24 Thread Tom Lane
Peter Eisentraut <[EMAIL PROTECTED]> writes: > Hey, I don't want to take your ILIKE away. But at the time it was added > the claim was that it was for compatibility and now we learn that that was > wrong. That is something to make people aware of, for example in the > documentation. It already d

Re: [HACKERS] ILIKE

2003-02-24 Thread Peter Eisentraut
Vince Vielhaber writes: > > It's never too late for new users to reconsider. It's also never too late > > to change your application of performance is not satisfactory. > > And if performance is satisfactory? Hey, I don't want to take your ILIKE away. But at the time it was added the claim was

[HACKERS] Outdated example in documentation

2003-02-24 Thread Peter Eisentraut
User's Guide section 7.2, example 7-1, claims that SELECT 2 ^ 3 AS "Exp"; will be equivalent, after type resolution, to SELECT CAST(2 AS double precision) ^ CAST(3 AS double precision) AS "Exp"; (which is true) or SELECT 2.0 ^ 3.0 AS "Exp"; which is not true, since 2.0 and 3.0 are nowadays of

Re: [HACKERS] ILIKE

2003-02-24 Thread scott.marlowe
On Sat, 22 Feb 2003, Peter Eisentraut wrote: > AFAICT, ILIKE cannot use an index. So why does ILIKE even exist, when > lower(expr) LIKE 'foo' provides a solution that can use an index and is > more standard, too? I would guess because for lower(expr) to work you need to make an index on it. Si

Re: [HACKERS] REPEATED INSERT INTO ...

2003-02-24 Thread Neil Conway
On Mon, 2003-02-24 at 07:22, Christoph Haller wrote: > I've noticed subsequent executions of the same insert command are slow. > I've searched the list archives for this matter and found several > entries > related, including suggestions how to speed up. > The standard answer from the core team is,

[HACKERS] Thread safe ecpg

2003-02-24 Thread Shridhar Daithankar<[EMAIL PROTECTED]>
Hi all, I was just wondering.The patches for making ecpg thread safe that were floating around few days back, are they going to make in any near future releases? I am badly bitten by libpq as code i my multithreaded app. is growing steadily. I find myself making stupid mistakes every now and t

Re: [HACKERS] ILIKE

2003-02-24 Thread Tom Lane
Vince Vielhaber <[EMAIL PROTECTED]> writes: > On Tue, 25 Feb 2003, Justin Clift wrote: >> As an alternative to _removing_ it, would a feasible idea be to >> transparently alias it to something else, say a specific type of regex >> query or something? > Why screw with it for the sake of screwing wi

Re: [HACKERS] ILIKE

2003-02-24 Thread Justin Clift
Vince Vielhaber wrote: Why screw with it for the sake of screwing with it? Hmmm, good point. "If it aint broke" ? Regards and best wishes, Justin Clift Vince. -- "My grandfather once told me that there are two kinds of people: those who work and those who take the credit. He told me to try to

Re: [HACKERS] ILIKE

2003-02-24 Thread Vince Vielhaber
On Tue, 25 Feb 2003, Justin Clift wrote: > Peter Eisentraut wrote: > > Tom Lane writes: > > > >>My feeling too. Whatever you may think of its usefulness, it's been a > >>documented feature since 7.1. It's a bit late to reconsider. > > > > It's never too late for new users to reconsider. It's al

Re: [HACKERS] REPEATED INSERT INTO ...

2003-02-24 Thread Tom Lane
Christoph Haller <[EMAIL PROTECTED]> writes: > Taken from the Reference Manual > [REPEATED] INSERT INTO ... > The key word REPEATED directs INGRES to encode the INSERT and save its > execution plan when it is first executed. This encoding can account for > significant performance improvements on s

Re: [HACKERS] ILIKE

2003-02-24 Thread Justin Clift
Peter Eisentraut wrote: Tom Lane writes: My feeling too. Whatever you may think of its usefulness, it's been a documented feature since 7.1. It's a bit late to reconsider. It's never too late for new users to reconsider. It's also never too late to change your application of performance is not

Re: [HACKERS] ILIKE

2003-02-24 Thread Vince Vielhaber
On Mon, 24 Feb 2003, Peter Eisentraut wrote: > Tom Lane writes: > > > My feeling too. Whatever you may think of its usefulness, it's been a > > documented feature since 7.1. It's a bit late to reconsider. > > It's never too late for new users to reconsider. It's also never too late > to change

Re: [HACKERS] ILIKE

2003-02-24 Thread Peter Eisentraut
Josh Berkus writes: > - Some other databases support ILIKE and it makes porting easier. Which database would that be? -- Peter Eisentraut [EMAIL PROTECTED] ---(end of broadcast)--- TIP 5: Have you checked our extensive FAQ? http://www.postgr

Re: [HACKERS] ILIKE

2003-02-24 Thread Peter Eisentraut
Tom Lane writes: > My feeling too. Whatever you may think of its usefulness, it's been a > documented feature since 7.1. It's a bit late to reconsider. It's never too late for new users to reconsider. It's also never too late to change your application of performance is not satisfactory. --

[HACKERS] REPEATED INSERT INTO ...

2003-02-24 Thread Christoph Haller
I've noticed subsequent executions of the same insert command are slow. I've searched the list archives for this matter and found several entries related, including suggestions how to speed up. The standard answer from the core team is, use COPY. Sorry, but this is from an application point of vie

Re: [HACKERS] ILIKE

2003-02-24 Thread Rod Taylor
On Sun, 2003-02-23 at 23:31, Tom Lane wrote: > Josh Berkus <[EMAIL PROTECTED]> writes: > > - Some other databases support ILIKE and it makes porting easier. > > Which other ones? I checked our archives and found that when we were > discussing adding ILIKE, it was claimed that Oracle had it. But