[HACKERS] Any tips for this particular performance problem?

2001-07-10 Thread Sergio Bruder
If you have time, take a quick look at http://acidlab.sourceforge.net/perf/acid_perf.html PostgreSQL has serious scalability problems with snort + acid. Any advices? (Now I'm using MySQL with my SNORT/ACID setup, but I'm willing to change to PostgreSQL if more tests are needed) Sergio Bruder

Re: AW: [HACKERS] Repost: Get table/field-identifiers in uppercase

2001-07-10 Thread Tom Lane
Zeugswetter Andreas SB [EMAIL PROTECTED] writes: I do not think the standard states what should happen when you start mixing quoted and unquoted identifiers for the same object. Actually, it does: 13)A regular identifier and a delimited identifier are equiva- lent if

Re: [HACKERS] Buffer access rules, and a probable bug

2001-07-10 Thread Bill Studenmund
Sorry for the delay. On Tue, 3 Jul 2001, Tom Lane wrote: [EMAIL PROTECTED] (Nathan Myers) writes: Also, as hints, would it be Bad(tm) if an attempt to clear one failed? Clearing hint bits is also an exclusive-lock-only operation. Notice I specified that *setting* them is the only case

RE: [HACKERS] New SQL Datatype RECURRINGCHAR

2001-07-10 Thread David Bennett
The only problem with 'enum' is that all of the possible values must be specified at CREATE time. A logical extension to this would be to allow for 'dynamic extensions' to the list. -Original Message- From: Tom Lane [mailto:[EMAIL PROTECTED]] Sent: Tuesday, July 03, 2001 4:49 PM To: Rod

[HACKERS] varchar vs. text

2001-07-10 Thread Rachit Siamwalla
Is there any good reason to use VARCHAR over TEXT for a string field? ie. performance hits, etc. Other than running into the row size limit problem, are there any large storage / performance penalties of using TEXT for virtually all strings? For ex. A phone number. This field probably wouldn't

[HACKERS] i need help for JDBC

2001-07-10 Thread ma li
Hi, I have compiled with --with-multibytes, but the JDBC really can not recognize chinese character. Any suggestion is kind for me. malix shanghai china _ [×ã²»³ö»§ ÇáËÉÉÏÍø] ÉÏÍøרÓúţº95963£¬Óû§Ãû/ÃÜÂ룺263

Re: [HACKERS] Re: [OT] Any major users of postgresql?

2001-07-10 Thread Tom Lane
John Moore [EMAIL PROTECTED] writes: In the case of PostgreSQL, as far as I can tell, one could lose all data since the previous dump if one lost the database media. In Oracle or Informix, that is *not* true, because they can do a point-in-time restore from the last full save, based on the

Re: [HACKERS] varchar vs. text

2001-07-10 Thread Tom Lane
Rachit Siamwalla [EMAIL PROTECTED] writes: Is there any good reason to use VARCHAR over TEXT for a string field? The only reason to use VARCHAR is if you *want* the data to be truncated at a specific length. If you don't have a well-defined upper limit in mind, I'd recommend TEXT.

Re: [HACKERS] i need help for JDBC

2001-07-10 Thread Tatsuo Ishii
I have compiled with --with-multibytes, but the JDBC really can not recognize chinese character. Any suggestion is kind for me. Hard to tell unless provided PostgreSQL version given and what kind of encoding you use. [×ã²»³ö»§ ÇáËÉÉÏÍø] ÉÏÍøרÓúţº95963£¬Óû§Ãû/ÃÜÂ룺263 Do not

[HACKERS] libpq autoconf scripts?

2001-07-10 Thread Timothy H. Keitt
Anyone maintaining generic autoconf scripts for linking against libpq, i.e., returns path to libpq-fe.h and proper link options? Tim -- Timothy H. Keitt Department of Ecology and Evolution State University of New York at Stony Brook Stony Brook, New York 11794 USA Phone: 631-632-1101, FAX:

[HACKERS] docs Japanese translation

2001-07-10 Thread Tatsuo Ishii
Hi, We (SRA) have done the translation of PostgreSQL 7.1 docs into Japanese. They can be freely available at http://osb.sra.co.jp/PostgreSQL/Manual/. -- Tatsuo Ishii ---(end of broadcast)--- TIP 1: subscribe and unsubscribe commands go to [EMAIL

AW: AW: [HACKERS] pg_index.indislossy

2001-07-10 Thread Zeugswetter Andreas SB
Can someone tell me what we use indislossy for? Ok, so the interpretation of this field is: A match in the index needs to be reevaluated in the heap tuple data, since a match in the index does not necessarily mean, that the heap tuple matches.

Re: AW: [HACKERS] pg_index.indislossy

2001-07-10 Thread Bruce Momjian
Bruce Momjian writes: Can someone tell me what we use indislossy for? Ok, so the interpretation of this field is: A match in the index needs to be reevaluated in the heap tuple data, since a match in the index does not necessarily mean, that the heap tuple matches.

Re: AW: [HACKERS] pg_index.indislossy

2001-07-10 Thread Tom Lane
Peter Eisentraut [EMAIL PROTECTED] writes: Bruce Momjian writes: A match in the index needs to be reevaluated in the heap tuple data, since a match in the index does not necessarily mean, that the heap tuple matches. AFAIK, this is true for all indexes in PostgreSQL, because index rows

Re: AW: [HACKERS] pg_index.indislossy

2001-07-10 Thread Peter Eisentraut
Tom Lane writes: Not true at all. The tuple commit status needs to be rechecked, yes, but with a normal index it is not necessary to recheck whether the index key field actually satisfies the index qual conditions. With a lossy index it *is* necessary to recheck --- the index may return

[HACKERS] FE/BE protocol oddity

2001-07-10 Thread Peter Eisentraut
The description of the FE/BE protocol says: | The postmaster uses this info and the contents of the pg_hba.conf file | to determine what authentication method the frontend must use. The | postmaster then responds with one of the following messages: [...] | If the frontend does not support the

Re: [HACKERS] Any tips for this particular performance problem?

2001-07-10 Thread Stephan Szabo
On Tue, 10 Jul 2001, Sergio Bruder wrote: If you have time, take a quick look at http://acidlab.sourceforge.net/perf/acid_perf.html PostgreSQL has serious scalability problems with snort + acid. Any advices? (Now I'm using MySQL with my SNORT/ACID setup, but I'm willing to change to

Re: AW: AW: [HACKERS] pg_index.indislossy

2001-07-10 Thread Bruce Momjian
Can someone tell me what we use indislossy for? Ok, so the interpretation of this field is: A match in the index needs to be reevaluated in the heap tuple data, since a match in the index does not necessarily mean, that the heap tuple matches.

Re: AW: [HACKERS] pg_index.indislossy

2001-07-10 Thread Bruce Momjian
Peter Eisentraut [EMAIL PROTECTED] writes: But why is this called lossy? Shouldn't it be called exceedy? Good point ;-). lossy does sound like the index might lose tuples, which is exactly what it's not allowed to do; it must find all the tuples that match the query. The terminology

SOMAXCONN (was Re: [HACKERS] Solaris source code)

2001-07-10 Thread Tom Lane
Mathijs Brands [EMAIL PROTECTED] writes: OK, I tried using 1024 (and later 128) instead of SOMAXCONN (defined to be 5 on Solaris) in src/backend/libpq/pqcomm.c and ran a few regression tests on two different Sparc boxes (Solaris 7 and 8). The regression test still fails, but for a different

Re: [HACKERS] Any tips for this particular performance problem?

2001-07-10 Thread Hannu Krosing
Sergio Bruder wrote: If you have time, take a quick look at http://acidlab.sourceforge.net/perf/acid_perf.html PostgreSQL has serious scalability problems with snort + acid. Any advices? Usually porting from MySQL to PostgreSQL needs some rewrite of queries and process logic if good

Re: [HACKERS] Solaris source code

2001-07-10 Thread Mathijs Brands
On Mon, Jul 09, 2001 at 02:03:16PM -0700, Nathan Myers allegedly wrote: On Mon, Jul 09, 2001 at 02:24:17PM +0200, Mathijs Brands wrote: On Thu, Jul 05, 2001 at 02:03:31PM -0700, Naomi Walker allegedly wrote: At 04:30 PM 7/5/01 -0400, Bruce Momjian wrote: I have purchased the Solaris

Re: [HACKERS] Any tips for this particular performance problem?

2001-07-10 Thread Sergio Bruder
On Tue, Jul 10, 2001 at 04:04:43PM +0200, Hannu Krosing wrote: Sergio Bruder wrote: If you have time, take a quick look at http://acidlab.sourceforge.net/perf/acid_perf.html PostgreSQL has serious scalability problems with snort + acid. Any advices? Usually porting from MySQL

[HACKERS] Time to read pg_hba.conf (Re: [PATCHES] [PATCH] Patch to make...)

2001-07-10 Thread Peter Eisentraut
Tom Lane writes: Since pg_hba.conf is re-read on every connection, I've always thought it was pretty bogus to bulk it up with that much internal documentation. I've not tried to measure how much time it takes the postmaster to skip over those 200 comment lines, but it can't be completely

Re: [HACKERS] grant and SQL92

2001-07-10 Thread Peter Eisentraut
Bruce Momjian writes: On Sat, 9 Jun 2001, Peter Eisentraut wrote: Vince Vielhaber writes: I can grant a series of privileges (comma separated) on a series of objects (comma separated) to either a user, group or public NOT a comma separated list of users or groups. I

[HACKERS] Strange query execution time

2001-07-10 Thread Michel Soto
Hi, Can someone explain why the following query takes 1 second when using LIKE and takes 30 seconds when replacing LIKE by = in the WHERE ? - instance_Attribute has 45 rows and Influence has 5 rows. - Postgresql 7.1 Regards = SELECT E1A1.nameInstance AS inste,

Re: [HACKERS] JDBC Support - prepared Statements?

2001-07-10 Thread Rainer Klute
yes I did so. The name of the rpm I recently downloaded is: postgresql-jdbc-7.1.2-4PGDG.i386.rpm and it is throwing the exception when calling the prepareStatement() Method. Hm, I build everything from source. Perhaps the RPM is buggy. -- Best regards Rainer Klute Dipl.-Inform.

Re: SOMAXCONN (was Re: [HACKERS] Solaris source code)

2001-07-10 Thread Bruce Momjian
Mathijs Brands [EMAIL PROTECTED] writes: OK, I tried using 1024 (and later 128) instead of SOMAXCONN (defined to be 5 on Solaris) in src/backend/libpq/pqcomm.c and ran a few regression tests on two different Sparc boxes (Solaris 7 and 8). The regression test still fails, but for a

[HACKERS] way to pass NEW into function

2001-07-10 Thread Mike Cianflone
Is it possible to trick pg/sql to allow passing of the NEW record into a function? I've got a trigger that gets kicked off before an insert and I need to call another function and pass that record in, but doing a perform activate_event(NEW); /* my function is activate_event(OPAQUE) */

[HACKERS] Re: Production Backup and Recovery

2001-07-10 Thread John Moore
Doug McNaught [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED]... P. Dwayne Miller [EMAIL PROTECTED] writes: Is it documented somewhere how to do on-line backups and then how to recover from some event using those backups with no (or minimum) loss of data? Right now there is

Re: SOMAXCONN (was Re: [HACKERS] Solaris source code)

2001-07-10 Thread Nathan Myers
On Tue, Jul 10, 2001 at 05:06:28PM -0400, Bruce Momjian wrote: Mathijs Brands [EMAIL PROTECTED] writes: OK, I tried using 1024 (and later 128) instead of SOMAXCONN (defined to be 5 on Solaris) in src/backend/libpq/pqcomm.c and ran a few regression tests on two different Sparc boxes

Re: [HACKERS] Tips performance under solaris

2001-07-10 Thread Bruce Momjian
Hi, I try postgresql V 7.1.2 under solaris 2.8 ( patch + the last version ) and i use directio implementation for ufs . Improved UFS Direct I/O Concurrency (Quick I/O Equivalent) Solaris 8 1/01 update release allows concurrent read and write access to regular UFS files. As databases

RE: [HACKERS] New SQL Datatype RECURRINGCHAR

2001-07-10 Thread David Bennett
various disagreements and quotes... I agree that you disagree :) RECURRINGCHAR does not break normal form. It simply optimizes the storage of reference values (recurring keys). This allows for the use of 'long words' as reference values with a great deal of system storage savings and a

Re: [HACKERS] grant and SQL92

2001-07-10 Thread Bruce Momjian
On Mon, 9 Jul 2001, Peter Eisentraut wrote: Bruce Momjian writes: On Sat, 9 Jun 2001, Peter Eisentraut wrote: Vince Vielhaber writes: I can grant a series of privileges (comma separated) on a series of objects (comma separated) to either a user, group or

Re: [HACKERS] Async PQgetResult() question.

2001-07-10 Thread Matthew Hagerty
Uh oops! I misread IIRC as (IRC, i.e. Internet Relay Chat or something similar.) It is too early! ;) I'll dig in the archives. Thanks, Matthew At 12:03 PM 7/8/2001 -0400, Matthew Hagerty wrote: At 11:44 PM 7/7/2001 -0400, Tom Lane wrote: Matthew Hagerty [EMAIL PROTECTED] writes: So then

Re: [HACKERS] timestamp with/without time zone

2001-07-10 Thread Bruce Momjian
I believe everyone already agreed that 'current' should be removed. 'invalid' seems somewhat redundant with NULL, so I wouldn't object to taking it out; on the other hand, is it hurting anything? Also, it seems a bad idea to remove it from timestamp if we leave it in abstime; you

RE: [HACKERS] New SQL Datatype RECURRINGCHAR

2001-07-10 Thread David Bennett
Alex, I think I fully understand your position. Let me put wrap up our conversation so far. Given the application requirements: 1) contacts have a type. 2) new types must be added on the fly as needed. 3) types names rarely change. 4) the number of contacts should scale to support

Re: SOMAXCONN (was Re: [HACKERS] Solaris source code)

2001-07-10 Thread Tom Lane
Bruce Momjian [EMAIL PROTECTED] writes: Could we test SOMAXCONN and set PG_SOMAXCONN to 1000 only if SOMAXCONN1 is less than 1000? Why bother? If you've got some plausible scenario where 1000 is too small, we could just as easily make it 1. I don't see the need for yet another configure

Re: [HACKERS] grant and SQL92

2001-07-10 Thread Vince Vielhaber
On Tue, 10 Jul 2001, Bruce Momjian wrote: On Mon, 9 Jul 2001, Peter Eisentraut wrote: Bruce Momjian writes: On Sat, 9 Jun 2001, Peter Eisentraut wrote: Vince Vielhaber writes: I can grant a series of privileges (comma separated) on a series of

[HACKERS] Re: Time to read pg_hba.conf (Re: [PATCHES] [PATCH] Patch to make...)

2001-07-10 Thread Tom Lane
Peter Eisentraut [EMAIL PROTECTED] writes: So we're looking at a possible 12% win. Many thanks for doing this legwork. The possible win from not having to read the file at all is probably somewhat higher than that, but not vastly higher. Accordingly, I'd say that pre-parsing the file is not

Re: SOMAXCONN (was Re: [HACKERS] Solaris source code)

2001-07-10 Thread Tom Lane
Bruce Momjian [EMAIL PROTECTED] writes: I was thinking: #if SOMAXCONN = 1000 #define PG_SOMAXCONN SOMAXCONN #else #define PG_SOMAXCONN 1000 #endif Not in config.h, you don't. Unless you want sys/socket.h (or whichever header defines SOMAXCONN; how consistent

Re: [HACKERS] JDBC Support - prepared Statements?

2001-07-10 Thread Rainer Klute
... and the only problem we are facing is the I get an exception stating that with the current jdbc driver prepared statements are not supported (yet). Did you try the latest 7.1.2 release? I did so recently and did not encounter any problems with PreparedStatements. (There are still other

Re: [HACKERS] JDBC Support - prepared Statements?

2001-07-10 Thread Bruce Momjian
yes I did so. The name of the rpm I recently downloaded is: postgresql-jdbc-7.1.2-4PGDG.i386.rpm and it is throwing the exception when calling the prepareStatement() Method. Hm, I build everything from source. Perhaps the RPM is buggy. I would get the JAR from:

[HACKERS] Re: [OT] Any major users of postgresql?

2001-07-10 Thread John Moore
It probably depends on what you call serious. Anyway, the project I am working on is a online community for alternate investments and is built around a PostgreSQL (first 7.0, now 7.1) database: it's http://village.albourne.com but unfortunately most of it is limited only to subscribers so

Re: [HACKERS] Tips performance under solaris

2001-07-10 Thread Tom Lane
Bruce Momjian [EMAIL PROTECTED] writes: So it does I/O directly from the user buffer to disk, bypassing the system cache. I am not sure if that is a good idea because you are not using the system buffer cache nor is it allowing writes to be re-ordered for optimial performance. ... and, more

Re: [HACKERS] grant and SQL92

2001-07-10 Thread Bruce Momjian
Added to TODO: * Allow GRANT/REVOKE to handle multiple user/group names You must have missed the part about tomorrow. Did you already commit? I was watching for it but could very well have missed it. I don't see it. The tomorrow Vince was talking about

Re: [HACKERS] grant and SQL92

2001-07-10 Thread Vince Vielhaber
On Tue, 10 Jul 2001, Bruce Momjian wrote: Added to TODO: * Allow GRANT/REVOKE to handle multiple user/group names You must have missed the part about tomorrow. Did you already commit? I was watching for it but could very well have missed it. I

Re: [HACKERS] way to pass NEW into function

2001-07-10 Thread Larry Rosenman
What I did in a similar trigger was set a variable (of type RECORD) to NEW and then use that. (I actually used the appropriate fields, but record should... work) LER Original Message On 7/10/01, 4:22:34 PM, Mike Cianflone [EMAIL PROTECTED] wrote regarding [HACKERS] way to pass NEW into

Re: [HACKERS] Strange query execution time

2001-07-10 Thread Stephan Szabo
What does explain show for the two queries? On Wed, 4 Jul 2001, Michel Soto wrote: Hi, Can someone explain why the following query takes 1 second when using LIKE and takes 30 seconds when replacing LIKE by = in the WHERE ? - instance_Attribute has 45 rows and Influence has 5 rows. -

Re: AW: [HACKERS] pg_index.indislossy

2001-07-10 Thread Tom Lane
[EMAIL PROTECTED] (Nathan Myers) writes: Seriously, indislossy is a singularly poor name for a predicate. Perhaps, but it fits with the existing naming conventions for Postgres catalog columns. Unless we want to indulge in wholesale renaming of the system's catalog columns (and break an awful

[HACKERS] Re: Backups WAS: 2 gig file size limit

2001-07-10 Thread Joseph Shraibman
Lamar Owen wrote: On Friday 06 July 2001 18:51, Naomi Walker wrote: If PostgreSQL is run on a system that has a file size limit (2 gig?), where might cause us to hit the limit? Since PostgreSQL automatically segments its internal data files to get around such limits, the only place you

[HACKERS] Re: [GENERAL] 2 gig file size limit

2001-07-10 Thread Bruce Momjian
(This question was answered several days ago on this list; please check the list archives before posting. I believe it's also in the FAQ.) If PostgreSQL is run on a system that has a file size limit (2 gig?), where might cause us to hit the limit? Postgres will never internally use

[HACKERS] Quick Question!

2001-07-10 Thread Harry Yau
Hi: A really simple question: I wanna set up some WAL related config parameter. I am wondering is it the same to add those parameter on postgresql.conf as to add them on /etc/rc.d/init.d/postgres.init?? ---(end of broadcast)--- TIP 5: Have you

Re: SOMAXCONN (was Re: [HACKERS] Solaris source code)

2001-07-10 Thread Nathan Myers
On Tue, Jul 10, 2001 at 06:36:21PM -0400, Tom Lane wrote: [EMAIL PROTECTED] (Nathan Myers) writes: All the OSes we know of fold it to 128, currently. We can jump it to 10240 now, or later when there are 20GHz CPUs. If you want to make it more complicated, it would be more useful to

Re: SOMAXCONN (was Re: [HACKERS] Solaris source code)

2001-07-10 Thread Bruce Momjian
[EMAIL PROTECTED] (Nathan Myers) writes: All the OSes we know of fold it to 128, currently. We can jump it to 10240 now, or later when there are 20GHz CPUs. If you want to make it more complicated, it would be more useful to be able to set the value lower for runtime environments

[HACKERS] Re: SOMAXCONN (was Re: Solaris source code)

2001-07-10 Thread Ian Lance Taylor
Tom Lane [EMAIL PROTECTED] writes: [EMAIL PROTECTED] (Nathan Myers) writes: If you want to make it more complicated, it would be more useful to be able to set the value lower for runtime environments where PG is competing for OS resources with another daemon that deserves higher

Re: [HACKERS] Postgresql bulk fast loader

2001-07-10 Thread Bruce Momjian
Does postgresql have any sort of fast bulk loader? COPY command. -- Bruce Momjian| http://candle.pha.pa.us [EMAIL PROTECTED] | (610) 853-3000 + If your life is a hard drive, | 830 Blythe Avenue + Christ can be your backup.|

Re: [HACKERS] timestamp with/without time zone

2001-07-10 Thread Thomas Lockhart
Is this a TODO item? Sure, but I'd hate to have all of these individual items showing up as separate things in some ToDo list, since it won't paint a coherent picture of where things are headed. I'm planning on doing some work on timestamp, which will include: o support for ISO variants on

Re: [HACKERS] Re: Encrypting pg_shadow passwords

2001-07-10 Thread Michael Samuel
On Tue, Jun 26, 2001 at 11:02:15AM -0400, Bruce Momjian wrote: This is the first time I am hearing people are more concerned about pg_shadow security than the wire security. I can see cases where people are on secure networks or are using only local users where having pg_shadow encrypted is

Re: [HACKERS] Re: Encrypting pg_shadow passwords

2001-07-10 Thread Bruce Momjian
On Tue, Jun 26, 2001 at 11:02:15AM -0400, Bruce Momjian wrote: This is the first time I am hearing people are more concerned about pg_shadow security than the wire security. I can see cases where people are on secure networks or are using only local users where having pg_shadow

Re: [HACKERS] timestamp with/without time zone

2001-07-10 Thread Bruce Momjian
I already commented what I thought about this: the current type is not either of the SQL-compatible timestamp types, and if we want to support the SQL-compatible semantics then we need three types, not two. Right, that was clear even to me ;) We were on that path for quite some time.

Re: [HACKERS] Any tips for this particular performance problem?

2001-07-10 Thread Ross J. Reedstrom
On Tue, Jul 10, 2001 at 09:46:07AM -0700, Stephan Szabo wrote: On Tue, 10 Jul 2001, Sergio Bruder wrote: If you have time, take a quick look at http://acidlab.sourceforge.net/perf/acid_perf.html PostgreSQL has serious scalability problems with snort + acid. Any advices? (Now

Re: SOMAXCONN (was Re: [HACKERS] Solaris source code)

2001-07-10 Thread Tom Lane
[EMAIL PROTECTED] (Nathan Myers) writes: All the OSes we know of fold it to 128, currently. We can jump it to 10240 now, or later when there are 20GHz CPUs. If you want to make it more complicated, it would be more useful to be able to set the value lower for runtime environments where PG

Re: [HACKERS] grant and SQL92

2001-07-10 Thread Tom Lane
Bruce Momjian [EMAIL PROTECTED] writes: I do have a pending patch from him that arrived today that deals with the CREATEDB/CREATEUSER ordering. I have not applied it because it hasn't appeared on patches yet for people to comment. I already applied his CREATE/ALTER USER patch, because he'd