Re: [GENERAL] Varchar Indexing

2001-02-08 Thread Tom Lane
mitch <[EMAIL PROTECTED]> writes: > Is there a size limit on indexable varying character fields? 1/3rd page, about 2700 bytes, if you're using btree index. Presently, TOAST does not help any :-( regards, tom lane

[GENERAL] About SP's and parameters

2001-02-08 Thread Alfonso Peniche
Hi all: Is there a way to pass a tablename as a parameter to a SP? I'll try to explain myself. I want to create a SP that can, for instance, do a delete from .. so that any particular application all it has to do is call the SP sending the table to be deleted. Right now I have:

[GENERAL] Indicies and write performance

2001-02-08 Thread Brent R.Matzelle
Hello everyone, I just joined the list. Adam Lang convinced me when he got some answers for me from your list and sent it to the PHP PG list. Thanks for all of your input. Let me change my question somewhat to clear up my concern. How much of a write performance hit will I take if I create

[GENERAL] Varchar Indexing

2001-02-08 Thread mitch
Is there a size limit on indexable varying character fields? I need a semi-large varchar field (say 2048 characters) but really need the speed of an index in searching, I'm left wondering at what point indexing varchar fields becomes useless (if it ever does).. Thanks! -Mitch

Re: [GENERAL] Fw: [PHP] Fooling the query optimizer

2001-02-08 Thread Tom Lane
"Adam Lang" <[EMAIL PROTECTED]> forwards: >> In Postgres I am forced to create three indicies: one including all >> three columns, one for col2 and col3, and one for just col3. Depending on what his queries actually are, perhaps it's sufficient to create one index on (col3,col2,col1), rather than

Re: [GENERAL] Re: timestamp goober

2001-02-08 Thread Gregory Wood
Oh, I just made sure that I started a new transaction :) I actually prefer that timestamps are handled that way... once I realized *why* I had triggered INSERTs that were stamped 45 minutes earlier than I thought they should have been. Greg > Yes, and that's a feature :) > > If you want a wall

Re: [GENERAL] Re: timestamp goober

2001-02-08 Thread Alex Pilosov
Yes, and that's a feature :) If you want a wall clock time, use timenow() -alex On Thu, 8 Feb 2001, Gregory Wood wrote: > > columns with default timestamp('now') see to be > > defaulting to the time I started posgresql! > > I noticed that timestamps (in my case CURRENT_TIMESTAMP) are taken fr

RE: [GENERAL] Fw: [PHP] Fooling the query optimizer

2001-02-08 Thread Michael Ansley
Title: RE: [GENERAL] Fw: [PHP] Fooling the query optimizer Running this query: "SELECT * WHERE col3 = x" with a btree index on (col1, col2, col3) cannot be performed in an efficient manner, in any database, because you have specified the column order to be col1, col2, col3.  If somebody cl

RE: [GENERAL] Re: Query never returns ...

2001-02-08 Thread Mayers, Philip J
What does: EXPLAIN SELECT tblSIDEDrugLink.DrugID, tblSIDEDrugLink.MedCondID, tblMedCond.PatientName AS MedCondPatientName, tblMedCond.ProfessionalName AS MedCondProfessionalName, tblSIDEDrugLink.Frequency, tblSIDEDrugLink.SeverityLevel FROM

[GENERAL] Re: [SQL] Query never returns ...

2001-02-08 Thread Brice Ruth
Stephan, Here is what EXPLAIN shows: NOTICE: QUERY PLAN: Sort (cost=0.02..0.02 rows=1 width=64) -> Nested Loop (cost=0.00..0.01 rows=1 width=64) -> Seq Scan on tblmedcond (cost=0.00..0.00 rows=1 width=36) -> Seq Scan on tblsidedruglink (cost=0.00..0.00 rows=1 width=28)

[GENERAL] Re: [SQL] Query never returns ...

2001-02-08 Thread Brice Ruth
All right ... after reading up on the documentation for vacuum, I understand why that's necessary. I've run vacuum analyze on all the tables, now. Here are the more realistic results from explain: NOTICE: QUERY PLAN: Sort (cost=62.46..62.46 rows=14 width=64) -> Nested Loop (cost=0.00..62

[GENERAL] serious performance problem

2001-02-08 Thread Emmanuel Pierre
Hi, I am running PGSql 7.0.3 over Linux 2/ELF with a ReiserFS filesystem, Bi-P3 800 and 2Gb of RAM. My database jump from 8 in load to 32 without any real reason nor too much requests. I already do vacuum even on the fly ifever that can decrease load, but nothing...

Re: [GENERAL] timestamp goober

2001-02-08 Thread Manuel Sugawara
Culley Harrelson <[EMAIL PROTECTED]> writes: > columns with default timestamp('now') see to be > defaulting to the time I started posgresql! try using: default 'now' instead of: default timestamp('now') in your table definitions. The latter is evaluated by postgres just once, when the table is i

[GENERAL] TOAST

2001-02-08 Thread David Wheeler
Greetings All, I've seem some references to TOAST in 7.1. Can anyone tell me what it is and/or where I can read all about it and how it will solve all my problems using BLOBs with PostgreSQL? Thanks! David

[SQL] Re: Query never returns ...

2001-02-08 Thread Brice Ruth
FYI - I let the query run for 11.5 minutes before killing it off. It had consumed 11 minutes, 18 seconds of CPU time (reported by ps). The following messages are from the server log, I'm pasting in all messages directly following the query: 010208.10:04:29.473 [24041] ProcessQuery 010208.10:15:

[GENERAL] Fw: [PHP] Fooling the query optimizer

2001-02-08 Thread Adam Lang
On another list, someone posted this question. Are they correct, old problem, etc.? I'll pass whatever info there is back to the originating list. Adam Lang Systems Engineer Rutgers Casualty Insurance Company http://www.rutgersinsurance.com - Original Message - From: "Brent R.Matzelle"

[GENERAL] Re: Query never returns ...

2001-02-08 Thread Brice Ruth
Followup: This query, run against the same dataset in a MS Access 2000 database, returns immediately with the resultset. (I truly mean immediately) The computer running the Access db is a laptop, PII 266 w/ 128MB RAM (an old Dell Latitude). The server running PostgreSQL is a dual PIII 450 w/ 2

[GENERAL] Re: timestamp goober

2001-02-08 Thread Gregory Wood
> columns with default timestamp('now') see to be > defaulting to the time I started posgresql! I noticed that timestamps (in my case CURRENT_TIMESTAMP) are taken from the beginning of a transaction. You didn't mention how you were accessing the database, but if you were updating everything insid

[GENERAL] timestamp goober

2001-02-08 Thread Culley Harrelson
columns with default timestamp('now') see to be defaulting to the time I started posgresql! What am I doing wrong here? Is it an os problem? Need these columns to capture the current date and time. Culley __ Do You Yahoo!? Get personalized email

[GENERAL] Re: full text searching

2001-02-08 Thread Gunnar R|nning
Lincoln Yeoh <[EMAIL PROTECTED]> writes: > Sometimes I want it literal too. e.g. I'm searching for car I want car and > nothing else. Of course, you want this as well. > In the end it seems too complex. I'm starting to think it may be better to > keep things literal but fast, and do the smart

[SQL] Query never returns ...

2001-02-08 Thread Brice Ruth
The following query: SELECT tblSIDEDrugLink.DrugID, tblSIDEDrugLink.MedCondID, tblMedCond.PatientName AS MedCondPatientName, tblMedCond.ProfessionalName AS MedCondProfessionalName, tblSIDEDrugLink.Frequency, tblSIDEDrugLink.SeverityLevel FROM

Re: [GENERAL] tuples too big

2001-02-08 Thread Tom Lane
> I've got a problem - I need a little help. I'm using 6.5.3 from Debian > stable. > I've got a database, which has some fields in one table that need to hold a > fair bit of text (say, 8000-10,000+ characters). Right now, I've got those > fields as simple text. [ Martin suggests breaking up the

Re: [GENERAL] Trouble with views (7.1beta4 Debian) and PgAccess0.98.7.

2001-02-08 Thread Peter Eisentraut
Emmanuel Charpentier writes: > Hence a question : shouldn't the system (pg_* and pga_*) tables be somewhat > documented at least in the reference manual (and maybe cross-referenced in the > programmer's manual) ? They seem not to be at the time ... http://www.postgresql.org/devel-corner/docs/pos

Re: [GENERAL] tuples too big

2001-02-08 Thread Lamar Owen
[EMAIL PROTECTED] wrote: > This works well for things like notes and memo's but probably not so good > for > huge amounts of data. Its flexible and there's no hardcoded limit to the > length of data. Sounds something like TOAST, part of PostgreSQL 7.1, to be released soon. TOAST, however, is in

Re: [GENERAL] monitoring running queries?

2001-02-08 Thread Brice Ruth
Cool, that worked. Thank you. -Brice "Brett W. McCoy" wrote: > > On Thu, 8 Feb 2001, Brice Ruth wrote: > > > Its not working ... I looked at the admin docs and edited the pg_options > > file appropriately ... the following is what appears in /var/log/messages: > > > > postgres[23686]: read_pg

Re: [GENERAL] .mips.rpm

2001-02-08 Thread Lamar Owen
"[EMAIL PROTECTED]" wrote: > Where can I find postgresql-7.0.x.mips.rpm for my Qube 2?? > I try to find them on the FTPs but I have seen anything We have no MIPS RPM's available on our FTP site. More specific information on OS, libc version, kernel, etc would be required anyway. This is becau

Re: [GENERAL] tuples too big

2001-02-08 Thread martin . chantler
Believe it or not we have the same problem with DB2 on AS/400 In PG you can create large objects which is the proper answer but there is another way... A memo table. This just contains a key to link up to the master record and a sequence and a long text field, e.g. 6K. Then write a function tha

Re: [GENERAL] monitoring running queries?

2001-02-08 Thread Brett W. McCoy
On Thu, 8 Feb 2001, Brice Ruth wrote: > Its not working ... I looked at the admin docs and edited the pg_options > file appropriately ... the following is what appears in /var/log/messages: > > postgres[23686]: read_pg_options: verbose=2,query=4,syslog=2 > > But no queries ... I sent SIG_HUP to p

[GENERAL] .mips.rpm

2001-02-08 Thread [EMAIL PROTECTED]
Hello, Where can I find postgresql-7.0.x.mips.rpm for my Qube 2?? I try to find them on the FTPs but I have seen anything please message me thanks __ Voila vous propose une boite aux lettres gratuite sur Voila Mail: http://mail.voila.fr

Re: [GENERAL] monitoring running queries?

2001-02-08 Thread Brice Ruth
Its not working ... I looked at the admin docs and edited the pg_options file appropriately ... the following is what appears in /var/log/messages: postgres[23686]: read_pg_options: verbose=2,query=4,syslog=2 But no queries ... I sent SIG_HUP to postmaster, even restarted postmaster. The file /

[GENERAL] tuples too big

2001-02-08 Thread Michelle Murrain
Hi folks, I've got a problem - I need a little help. I'm using 6.5.3 from Debian stable. I've got a database, which has some fields in one table that need to hold a fair bit of text (say, 8000-10,000+ characters). Right now, I've got those fields as simple text. When I try to enter data into

Re: [GENERAL] Auto-timestamp generator (attached)

2001-02-08 Thread Peter T Mount
Quoting Einar Karttunen <[EMAIL PROTECTED]>: > I think that modules like this could be included in the distribution or > archieved at the ftp. They'd make it easier for people new to sql to > start using postgresql. Also there would be no performance loss in > the backend code, as these "modules"

[GENERAL] Re: numeric type and odbc from access 2000

2001-02-08 Thread Stefan Waidele jun.
At 15:47 07.02.2001 +, Richard Huxton wrote: >[...] It is treating "100.200" as float and can't find an '=' operator that >matches numeric with float. You can handle it with > >where col3=100.200::numeric Yes, we can, but Access cannot, I have not found out how Delphi can, either. If You Quot