Re: [GENERAL] hackers dudes

2004-06-24 Thread Joshua D. Drake
Dennis Gearon wrote: So, do you guys ever get together physically with a white board? Your new to this aren't you? :) We are all over the world. We collaborate via email, phone, instant messaging and IRC. We do meet up at shows such as the upcoming OSCON and do birds of a feather sessions etc..

[GENERAL] Ranking values within a query (pseudo-ROWNUM) **fixed**

2004-06-24 Thread Jeff Boes
Gah, I'm dreadfully sorry. The original functions were cut-and-pasted from a "\df+" window, which meant they lost their quoted-ness, which means if you try to cut and paste from my message to a SQL prompt, you'll be sorely disappointed. Below are the edited versions. create table rank_of_values

[GENERAL] hackers dudes

2004-06-24 Thread Dennis Gearon
So, do you guys ever get together physically with a white board? ---(end of broadcast)--- TIP 7: don't forget to increase your free space map settings

[GENERAL] Ranking values within a query (pseudo-ROWNUM)

2004-06-24 Thread Jeff Boes
I hope this helps someone else ... I had struggled some time ago with attempts to get a rank of values query to work, but then I gave up and set it aside. I had another reason to attack it, and in between then and now I learned how to return "setof" values from a function, as well as how to con

[GENERAL] Renaming a schema

2004-06-24 Thread Jeffrey Melloy
Recently, I decided to rename one of my schemas from "adium" to "im". Then, all inserts started failing. I recreated a couple functions, changed the search path, and all inserts are still failing due to referential integrity checks going against "adium" still. Is there any way I can fix this, sh

Re: [GENERAL] Possible To Modify Part of String in Certain Rows?

2004-06-24 Thread Joshua D. Drake
Hello, You could do it with a function in plPHP, plPython or plTCL fairly easily. J Hunter Hillegas wrote: Is there any reasonable PGSQL query that could do something like this: Find all the releases from the releases table. For each release, do what is basically a find and replace on a column? Eac

[GENERAL] Possible To Modify Part of String in Certain Rows?

2004-06-24 Thread Hunter Hillegas
Is there any reasonable PGSQL query that could do something like this: Find all the releases from the releases table. For each release, do what is basically a find and replace on a column? Each column contains slightly different data and so the find and replace is not a constant. There needs to be

[GENERAL] Endless For Loop in an insert trigger

2004-06-24 Thread Luis Agostinho
Hello I?m using this function to be executed within an after insert trigger, but the part of code above wich is "painted" by blue gets in an endless loop. I could use some help Thanks in advance Luis Agostinho ---,,--- CREATE FUNCTION fnc_copia_tbl_emitidos

Re: [GENERAL] langauges, locales, regex, LIKE

2004-06-24 Thread Dennis Gearon
John Sidney-Woollett wrote: For what it's worth, we have a unicode 7.4.1 database which gives us the sorting and searching behaviour that we expect (with the exception of the upper and lower functions). We access the data via jdbc so we don't have to deal with encoding issues per se as the drive

Re: [GENERAL] langauges, locales, regex, LIKE

2004-06-24 Thread John Sidney-Woollett
Dennis Gearon wrote: John Sidney-Woollett wrote: For what it's worth, we have a unicode 7.4.1 database which gives us the sorting and searching behaviour that we expect (with the exception of the upper and lower functions). We access the data via jdbc so we don't have to deal with encoding issu

Re: [GENERAL] langauges, locales, regex, LIKE

2004-06-24 Thread Dennis Gearon
Richard Huxton wrote: Dennis Gearon wrote: If I've read everything right, in order to get: multiple languages on a site with the functionality of ALL of: REGEX LIKE Correctly sorted text A site would have to: create a cluster for every language needed run a separate data

Re: [GENERAL] unicode and sorting(at least)

2004-06-24 Thread Dennis Gearon
All of the ISO 8xxx encodings and LATINX encodings can handle two langauges, English and at least one other. Sometimes they can handle several langauges besides English, and are actually designed to handle a family of langauges. The ONLY encodings that can handle a significant amount of multiple

Re: [GENERAL] Queries not always using index on timestamp search

2004-06-24 Thread Richard Huxton
Mike Nolan wrote: Here are two queries (under 7.4.1): 'mytime' is a timestamp field that is indexed. select * from mytable where mytime > '2004-06-21' select * from mytable where mytime > current_date-3 Looking at an explain on these queries, the first one will use the index and the second one will

[GENERAL] Queries not always using index on timestamp search

2004-06-24 Thread Mike Nolan
Here are two queries (under 7.4.1): 'mytime' is a timestamp field that is indexed. select * from mytable where mytime > '2004-06-21' select * from mytable where mytime > current_date-3 Looking at an explain on these queries, the first one will use the index and the second one will not, even tho

[GENERAL] 7.4.3 RPMS for RHEL3

2004-06-24 Thread Devrim GUNDUZ
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi, I've built PostgreSQL 7.4.3 RPMS on RHEL3. Needed to change the spec file a bit for tcl and kerberos. They heve been tested and are working fine. RPMS, SRPMS and SPEC file is located at: http://www.gunduz.org/postgresql/packages-7.4.3/rhel3/

Re: [GENERAL] unicode and sorting(at least)

2004-06-24 Thread Tatsuo Ishii
> On Wed, 23 Jun 2004, Dennis Gearon wrote: > > > This is what has to be eventually done:(as sybase, and probably others do it) > > > > http://www.ianywhere.com/whitepapers/unicode.html > > Actually, what probably has to be eventually done is what's in the SQL > spec. > > Which is AFAICS bas

Re: [GENERAL] Dump produces file with new line characters

2004-06-24 Thread Mark Spruill
Tom, I have solved the problem. I don't know exactly what I did, but I think it had something to do with a screwed up "template1". When I first tried to load the database, I connected to template1 instead of the database I wanted to load. Things went down hill from there. So I finally just

Re: [GENERAL] PostgreSQL Optimizer

2004-06-24 Thread Jeff
On Jun 24, 2004, at 9:50 AM, Campano, Troy wrote: Hello, Is PostgreSQL’s optimizer cost based or syntactical based? cost based -- Jeff Trout <[EMAIL PROTECTED]> http://www.jefftrout.com/ http://www.stuarthamm.net/ ---(end of broadcast)--- TIP 5: Hav

Re: [GENERAL] langauges, locales, regex, LIKE

2004-06-24 Thread Tom Lane
Richard Huxton <[EMAIL PROTECTED]> writes: > You'd need a separate database, not a separate cluster. Each database > can then have their own encoding and locale. Not so, unfortunately. You get one locale per cluster, at least for LC_COLLATE and LC_CTYPE which are the significant settings for thi

[GENERAL] PostgreSQL Optimizer

2004-06-24 Thread Campano, Troy
Title: PostgreSQL Optimizer Hello, Is PostgreSQL’s optimizer cost based or syntactical based? Thank you!

Re: [GENERAL] unicode and sorting(at least)

2004-06-24 Thread Stephan Szabo
On Wed, 23 Jun 2004, Dennis Gearon wrote: > This is what has to be eventually done:(as sybase, and probably others do it) > > http://www.ianywhere.com/whitepapers/unicode.html Actually, what probably has to be eventually done is what's in the SQL spec. Which is AFAICS basically: Allow mu

Re: [GENERAL] Performance

2004-06-24 Thread Laura Vance
Dann Corbit wrote: -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Richard Huxton LuisH wrote: Question about Performance: What about access sounds (WAV or VOX) from filesystem or from Blob Database Whish performance can I expect on ea