[HACKERS] Suggestion for To Do List - Client timeout please.

2001-08-19 Thread Grant
Possibly create a timeout for psql. pg_dump, pg_restore and other clients. If they can not connect to a certain host within a certain period it will quit with an error. I have psql's still running for 6 days from crontab that could not connect to a bogus IP address. I checked the idocs and search

Re: [HACKERS] Locale by default?

2001-08-19 Thread Tatsuo Ishii
> It occurred to me that a server with locale features that is started in > the C locale is going to behave the same as a server without locale > features. The exception are a few extra memory moving operations. (I > sincerely hope that all systems' libcs have optimized paths for the C > locale.

[HACKERS] Re: [ADMIN] DB size

2001-08-19 Thread Grant
> Hi all. I'm not a good DB admin , thats why I'm posting to this list ! > How can I figure out the size of a database or table ??? It was easier in older versions of postgresql to perform a `du -h` on the directory that corresponded to the database name. However now they are named by some type o

Re: [HACKERS] Progress report on locale safe LIKE indexing

2001-08-19 Thread Hiroshi Inoue
Peter Eisentraut wrote: > > Hiroshi Inoue writes: > > > Hmm * string1 = string2 * doesn't imply * string1 LIKE string2 * ? > > In the current implementation of LIKE, you're right. The SQL standard > allows for the possibility that "[d]epending on the collating sequence, > two strings may compa

[HACKERS] Tool Search

2001-08-19 Thread Naomi Walker
We're about to start up Postgresql in production, and I am looking for a few tools, so I do not have to reinvent the wheel. I'm looking for tools that: 1) Grep through log files, looking for particulary nasty items, that should get sent to me in email or to a cell phone. I noticed you can u

RE: [HACKERS] User locks code

2001-08-19 Thread Vadim Mikheev
Well, ability to lock only unlocked rows in select for update is useful, of course. But uniq features of user'locks are: 1. They don't interfere with normal locks hold by session/transaction. 2. Share lock is available. 3. User can lock *and unlock objects* inside transaction, which is not (a

Re: [HACKERS] Locale by default?

2001-08-19 Thread Justin Clift
If it's of any assistance, I'm working with the Open Source Database Benchmark guys (osdb.sourceforge.net) to get an AS3AP-based benchmark for PostgreSQL 7.1.x+ up-and-running reliably. It's working on my Mandrake Linux 8.0 system here, but I need the main OSDB guy to get back from holidays to re

Re: [HACKERS] Locale by default?

2001-08-19 Thread Tom Lane
Peter Eisentraut <[EMAIL PROTECTED]> writes: > (I sincerely hope that all systems' libcs have optimized paths for the C > locale.) So we could get rid of this --enable-locale switch > altogether. Some experimental evidence to support the claim that --enable-locale has zero cost would be good bef

Re: [HACKERS] A fixed user id for the postgres user?

2001-08-19 Thread Tom Lane
Peter Eisentraut <[EMAIL PROTECTED]> writes: > I think the simplest fix would be to assign a fixed usesysid of 1. Slightly more flexible: make the ID number an initdb option, with a default of 1. This would let people do it the old way if they wanted. Doesn't seem very critical though.

Re: [HACKERS] Locale by default?

2001-08-19 Thread Justin Clift
Hi Peter, Any idea of how many "extra memory moving operations" that would be? :-) Regards and best wishes, Justin Clift Peter Eisentraut wrote: > > It occurred to me that a server with locale features that is started in > the C locale is going to behave the same as a server without locale

[HACKERS] Locale by default?

2001-08-19 Thread Peter Eisentraut
It occurred to me that a server with locale features that is started in the C locale is going to behave the same as a server without locale features. The exception are a few extra memory moving operations. (I sincerely hope that all systems' libcs have optimized paths for the C locale.) So we c

Re: [HACKERS] Guide to PostgreSQL source tree

2001-08-19 Thread Neil Padgett
On Sun, 19 Aug 2001, Tom Lane wrote: > One thing that I find absolutely essential for dealing with any large > project is a full-text indexer (I use Glimpse, but I think there are > others out there). Being able to quickly look at every use of a > particular identifier goes a long way towards ans

[HACKERS] A fixed user id for the postgres user?

2001-08-19 Thread Peter Eisentraut
We've had some problem reports that the current practice of initdb assigning to the postgres user the same usesysid as the user id of the Unix user running initdb has caused some clashes. (Imagine this scenario: A few years ago you installed BluePants Linux 5.0, created a user for PostgreSQL, id

Re: [HACKERS] Guide to PostgreSQL source tree

2001-08-19 Thread Tom Lane
"Serguei Mokhov" <[EMAIL PROTECTED]> writes: > And what's wrong in automated guide generation? Even more to the point, what's wrong with looking at the source code? (Why would you want a "line by line" guide if you're not looking at the source code, anyway?) We could probably do with more extens

[HACKERS] Re: Multiple parameters on aggregates?

2001-08-19 Thread mlw
mlw wrote: > > Just a suggestion, how much work would it be to accept multiple parameters on > aggregate functions? > > For instance: > > select fubar(field1, field2) from table one group by field1; > > The reason I think that this is useful is that for some statistical operations, > often tim

Re: [HACKERS] Guide to PostgreSQL source tree

2001-08-19 Thread Serguei Mokhov
- Original Message - From: Gavin Sherry <[EMAIL PROTECTED]> Sent: Sunday, August 19, 2001 3:40 AM > Hi all, > > For a few months now I've been thinking about whether or not a guide > ('line-by-line') to the Postgres source tree would be of any value. [snip] > So, what do people th

[HACKERS] Re: [PATCHES] encoding names

2001-08-19 Thread Tatsuo Ishii
> > 4) Encoding "official" names are inconsistent. Here are my suggested > >changes (referring http://www.iana.org/assignments/character-sets, > >according to Peter's suggestiuon): > > > > ALT -> IBM866 > > KOI8 -> KOI8_R > > UNICODE -> UTF_8 (Peter's suggestion) > > > >

Re: [HACKERS] Re: [PATCHES] encoding names

2001-08-19 Thread Tatsuo Ishii
> > ALT -> IBM866 > > Just a quick comment: ALT is not necessarily IBM866. > It can be any US-ASCII or 26-character-alphabet Latin set, for example > IBM819 or ISO8859-1. Is actually quite different from IBM866 in its > true meaning, and they shouldn't be aliased together. ALT is used for ex

[HACKERS] Re: [PATCHES] encoding names

2001-08-19 Thread Karel Zak
On Sun, Aug 19, 2001 at 11:02:57AM +0900, Tatsuo Ishii wrote: > 4) Encoding "official" names are inconsistent. Here are my suggested >changes (referring http://www.iana.org/assignments/character-sets, >according to Peter's suggestiuon): > > ALT -> IBM866 > KOI8 -> KOI8_R > UN

Re: [HACKERS] Progress report on locale safe LIKE indexing

2001-08-19 Thread Peter Eisentraut
Tom Lane writes: > But the LIKE code does know about multibyte character sets. Is it safe > to assume that memcmp-based sorting will not make any mistakes with > multibyte characters? Remember that this memcmp-based sorting is the same sorting that texteq will do when locale is turned off. So

RE: [HACKERS] Progress report on locale safe LIKE indexing

2001-08-19 Thread Peter Eisentraut
Hiroshi Inoue writes: > Hmm * string1 = string2 * doesn't imply * string1 LIKE string2 * ? In the current implementation of LIKE, you're right. The SQL standard allows for the possibility that "[d]epending on the collating sequence, two strings may compare as equal even if they are of differen

RE: [HACKERS] Progress report on locale safe LIKE indexing

2001-08-19 Thread Hiroshi Inoue
> -Original Message- > From: Peter Eisentraut > > Hiroshi Inoue writes: > > > Please look at my first question. > >This depends on the assumption that '=' is equivalent in > >any locale. Is it guaranteed ? > >For example, ( 'a' = 'A' ) isn't allowed in any locale ?. > > > > And

[HACKERS] Guide to PostgreSQL source tree

2001-08-19 Thread Gavin Sherry
Hi all, For a few months now I've been thinking about whether or not a guide ('line-by-line') to the Postgres source tree would be of any value. Such a guide would, most probably, trace an 'ultimate' query (ie, one which requires the use of all source level functionality) through the source as