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

2001-07-13 Thread Tom Lane
mlw <[EMAIL PROTECTED]> writes: > Nathan Myers wrote: >> But using SOMAXCONN blindly is always wrong; that is often 5, which >> is demonstrably too small. > It is rumored that many BSD version are limited to 5. BSD systems tend to claim SOMAXCONN = 5 in the header files, but *not* to have such a

Re: [HACKERS] Radical suggestion for plan executor?

2001-07-13 Thread Tom Lane
Martijn van Oosterhout <[EMAIL PROTECTED]> writes: > [ replace switch statements with function pointers ] I've built systems both ways, and I can't say that I find any real gain in transparency either way. I'm not excited about modifying Postgres this way. Function pointers have some definite d

Re: [HACKERS] iconv?

2001-07-13 Thread Tatsuo Ishii
> Tatsuo Ishii writes: > > > I have not checked iconv seriously since it's not very portable among > > our supported platforms. > > Allow me to bring you up to date: > > aix yes > beos > bsdi > darwin > freebsd in ports > hpux yes > irix5 yes > linux

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

2001-07-13 Thread mlw
Nathan Myers wrote: > > There are two was to think about this. Either you make this parameter > > tunable to give a proper estimate of the usability of the system, i.e. > > tailor the listen queue parameter to reject sockets when some number > > of sockets are waiting, or you say no one should eve

[HACKERS] Radical suggestion for plan executor?

2001-07-13 Thread Martijn van Oosterhout
I notice that the query executor currently has a lot of switch statements on the the type of node it is descending to. This means you get a call tree like: ExecProcNode ExecNestLoop ExecProcNode ExecMergeJoin ... Wouldn't it be nicer if the Plan had access to function pointer

Re: [HACKERS] Re: [PATCH] To remove EXTEND INDEX

2001-07-13 Thread Bruce Momjian
> * I agree with Tom's assertion that it's an awful lot of complexity for such > a marginal gain. Look at the size of the patch and the fact that it has all > been useless for the last few years. > > * I didn't send it to -patches because it's not ready yet. > > * Only posted a URL, not the patc

Re: [HACKERS] Re: [PATCH] To remove EXTEND INDEX

2001-07-13 Thread Martijn van Oosterhout
On Fri, Jul 13, 2001 at 06:34:22PM -0400, Bruce Momjian wrote: > > Let's drop the meta-discussions and cut to the chase: given that we are > > about to re-enable partial indexes, should we try to make EXTEND INDEX > > work too, or just remove it? > > We don't let people add columns to an existing

Re: [HACKERS] Re: [PATCH] To remove EXTEND INDEX

2001-07-13 Thread Martijn van Oosterhout
On Fri, Jul 13, 2001 at 05:49:56PM -0400, Tom Lane wrote: > Let's drop the meta-discussions and cut to the chase: given that we are > about to re-enable partial indexes, should we try to make EXTEND INDEX > work too, or just remove it? Just a few clarifications: * The reason it didn't go to -hac

Re: [HACKERS] OID question

2001-07-13 Thread Tom Lane
Naomi Walker <[EMAIL PROTECTED]> writes: > Is there any way to backtrack from an OID to tell what table included that > row (like some secret incantation from the system tables)? Nope, sorry. There's very little magic about OIDs at all; they're just values from a sequence.

[HACKERS] OID question

2001-07-13 Thread Naomi Walker
Is there any way to backtrack from an OID to tell what table included that row (like some secret incantation from the system tables)? -- Naomi Walker Chief Information Officer Eldorado Computing, Inc. 602-604-3100 ext 242 ---(end of broadcast)--

[HACKERS] Planned changes to pg_am catalog

2001-07-13 Thread Tom Lane
Since I am about to add a "bulk delete" routine to the index access method APIs for concurrent VACUUM, I need to add a column to pg_am to define the associated procedure for each index AM. This seems like a fine time to clean up some of the other outstanding TODO items for pg_am: 1. Add boolean

Re: [HACKERS] Re: [PATCH] To remove EXTEND INDEX

2001-07-13 Thread Bruce Momjian
> Let's drop the meta-discussions and cut to the chase: given that we are > about to re-enable partial indexes, should we try to make EXTEND INDEX > work too, or just remove it? > > The idea of EXTEND INDEX is to allow replacement of a partial index's > predicate. However, the implementation onl

Re: [HACKERS] Re: [PATCH] To remove EXTEND INDEX

2001-07-13 Thread Tom Lane
Let's drop the meta-discussions and cut to the chase: given that we are about to re-enable partial indexes, should we try to make EXTEND INDEX work too, or just remove it? The idea of EXTEND INDEX is to allow replacement of a partial index's predicate. However, the implementation only supports w

Re: [HACKERS] Re: [GENERAL] [PATCH] To remove EXTEND INDEX

2001-07-13 Thread Bruce Momjian
> > > > Note, this patch makes it as if it never existed. So, if you think some of > > > > the code may be useful, now is the time to speak up! :) > > > Shouldn't this conversation be happening on the -hackers list? TIA > > Actually, because it had a patch attached, it should go to patches, > > r

[HACKERS] Re: [GENERAL] [PATCH] To remove EXTEND INDEX

2001-07-13 Thread Bruce Momjian
> > > > Note, this patch makes it as if it never existed. So, if you think some of > > > > the code may be useful, now is the time to speak up! :) > > > Shouldn't this conversation be happening on the -hackers list? TIA > > Actually, because it had a patch attached, it should go to patches, > > r

[HACKERS] Re: [GENERAL] [PATCH] To remove EXTEND INDEX

2001-07-13 Thread Thomas Lockhart
> > > Note, this patch makes it as if it never existed. So, if you think some of > > > the code may be useful, now is the time to speak up! :) > > Shouldn't this conversation be happening on the -hackers list? TIA > Actually, because it had a patch attached, it should go to patches, > right? imh

Re: [HACKERS] iconv?

2001-07-13 Thread Bruce Momjian
> Tatsuo Ishii writes: > > > I have not checked iconv seriously since it's not very portable among > > our supported platforms. > > Allow me to bring you up to date: > > aix yes > beos > bsdi Count bsdi as yes. I have it working here. Compiled fine. -- Bruce Momjian

Re: [HACKERS] iconv?

2001-07-13 Thread Peter Eisentraut
Tatsuo Ishii writes: > I have not checked iconv seriously since it's not very portable among > our supported platforms. Allow me to bring you up to date: aix yes beos bsdi darwin freebsd in ports hpuxyes irix5 yes linux yes netbsd in

[HACKERS] Problem with rules and conditions

2001-07-13 Thread Tobias Hermansson
Hello, I have a problem with rules in postgres, it may be a bug, or maybe I'm doing something wrong. I'm running version 7.1.2 on a freebsd 4.3 box. Here is my table: CREATE TABLE customer ( cono integer not null, Name varchar, ssn varchar(10), PRIMARY KEY (cono) ); Here is the rule:

Re: [HACKERS] grant and SQL92

2001-07-13 Thread Bruce Momjian
> Bruce Momjian writes: > > > Can't I keep it on the TODO until it is done? And wasn't yesterday > > tomorrow? :-) > > No, tomorrow was the day after June 9th. Are you saying you did it already? I see it in CVS now. TODO updated. -- Bruce Momjian| http://candle

Re: [HACKERS] grant and SQL92

2001-07-13 Thread Peter Eisentraut
Bruce Momjian writes: > Can't I keep it on the TODO until it is done? And wasn't yesterday > tomorrow? :-) No, tomorrow was the day after June 9th. -- Peter Eisentraut [EMAIL PROTECTED] http://funkturm.homeip.net/~peter ---(end of broadcast)-

Re: [HACKERS] grant and SQL92

2001-07-13 Thread Bruce Momjian
> 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 separ

AW: AW: [HACKERS] Re: [GENERAL] Vacuum and Transactions

2001-07-13 Thread Zeugswetter Andreas SB
> > The conventional VACUUM would then be something you do as part of a DB > > reorganization (maybe once every month or so). > > Yes, but in other DB's if you UPDATE all rows in the table, you don't > double the disk space. Sure, but what is wrong with keeping the space allocated for the next

Re: [HACKERS] Re: select count...

2001-07-13 Thread Tom Lane
"P. Dwayne Miller" <[EMAIL PROTECTED]> writes: > I think 4 seconds is way too long to return the results. And NULLs in a > column should not change the answer. If you're doing count(foo) then NULLs in column foo definitely *should* change the answer. count(foo) does not count nulls. It seemed

Re: [HACKERS] Re: select count...

2001-07-13 Thread Hannu Krosing
"P. Dwayne Miller" wrote: > > I think 4 seconds is way too long to return the results. And NULLs in a > column should not change the answer. It seems logical that even a sequential > scan of an index would be much faster than a scan of the table (in this case > the record size is fairly large).

[HACKERS] Re: [GENERAL] [PATCH] To remove EXTEND INDEX

2001-07-13 Thread Bruce Momjian
> > Note, this patch makes it as if it never existed. So, if you think some of > > the code may be useful, now is the time to speak up! :) > > Shouldn't this conversation be happening on the -hackers list? TIA Actually, because it had a patch attached, it should go to patches, right? -- Br

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

2001-07-13 Thread Peter Eisentraut
Nathan Myers writes: > When the system is too heavily loaded (however measured), any further > login attempts will fail. What I suggested is, instead of the > postmaster accept()ing the connection, why not leave the connection > attempt in the queue until we can afford a back end to handle it?

Re: [HACKERS] iconv?

2001-07-13 Thread Patrick Welche
On Thu, Jul 12, 2001 at 12:04:25PM +0900, Tatsuo Ishii wrote: > > Has it ever been considered to (optionally) use the iconv interface for > > character set conversion instead of rolling our own? It seems to be a lot > > more flexible, has pluggable conversion modules (depending on the > > impleme

Re: [HACKERS] grant and SQL92

2001-07-13 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

Re: AW: AW: [HACKERS] Re: [GENERAL] Vacuum and Transactions

2001-07-13 Thread Bruce Momjian
> > > The conventional VACUUM would then be something you do as part of a DB > > > reorganization (maybe once every month or so). > > > > Yes, but in other DB's if you UPDATE all rows in the table, you don't > > double the disk space. > > Sure, but what is wrong with keeping the space allocated f

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

2001-07-13 Thread Nathan Myers
On Fri, Jul 13, 2001 at 07:53:02AM -0400, mlw wrote: > Zeugswetter Andreas SB wrote: > > I liked the idea of min(MaxBackends, PG_SOMAXCONN), since there is no use in > > accepting more than your total allowed connections concurrently. > > I have been following this thread and I am confused why th

[HACKERS] Re: [GENERAL] [PATCH] To remove EXTEND INDEX

2001-07-13 Thread Thomas Lockhart
> Note, this patch makes it as if it never existed. So, if you think some of > the code may be useful, now is the time to speak up! :) Shouldn't this conversation be happening on the -hackers list? TIA - Thomas ---(end of broadcast)

Re: [HACKERS] Re: SOMAXCONN

2001-07-13 Thread Nathan Myers
On Fri, Jul 13, 2001 at 10:36:13AM +0200, Zeugswetter Andreas SB wrote: > > > When the system is too heavily loaded (however measured), any further > > login attempts will fail. What I suggested is, instead of the > > postmaster accept()ing the connection, why not leave the connection > > att

Re: AW: [HACKERS] Re: [GENERAL] Vacuum and Transactions

2001-07-13 Thread Bruce Momjian
> > > I also think we have to leave VACUUM alone and come up with a new name > > for our light VACUUM. That way, people who do VACUUM at night when no > > one is on the system can keep doing that, and just add something to run > > light vacuum periodically during the day. > > If I understood wh

[HACKERS] Re: select count...

2001-07-13 Thread P. Dwayne Miller
I think 4 seconds is way too long to return the results. And NULLs in a column should not change the answer. It seems logical that even a sequential scan of an index would be much faster than a scan of the table (in this case the record size is fairly large). I'm trying to optimize queries that

Re: [HACKERS] select count...

2001-07-13 Thread Doug McNaught
"P. Dwayne Miller" <[EMAIL PROTECTED]> writes: > What's the fastest way to select the number of rows in a table? If I > use count(*) with no whereclause, it uses a seq_scan and takes 4 secs > (122k rows). With a where clause, it uses an index and returns in < 1 > sec. Selecting count(requestnu

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

2001-07-13 Thread mlw
Zeugswetter Andreas SB wrote: > > > When the system is too heavily loaded (however measured), any further > > login attempts will fail. What I suggested is, instead of the > > postmaster accept()ing the connection, why not leave the connection > > attempt in the queue until we can afford a back

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

2001-07-13 Thread Zeugswetter Andreas SB
> When the system is too heavily loaded (however measured), any further > login attempts will fail. What I suggested is, instead of the > postmaster accept()ing the connection, why not leave the connection > attempt in the queue until we can afford a back end to handle it? Because the clie

AW: [HACKERS] Re: [GENERAL] Vacuum and Transactions

2001-07-13 Thread Zeugswetter Andreas SB
> I also think we have to leave VACUUM alone and come up with a new name > for our light VACUUM. That way, people who do VACUUM at night when no > one is on the system can keep doing that, and just add something to run > light vacuum periodically during the day. If I understood what VACUUM ligh