Re: [HACKERS] Re: List response time...

2001-08-23 Thread Hannu Krosing
David Ford wrote: > > Ian Lance Taylor wrote: > > >>Mailing lists don't scale well to large numbers of subscribers. I see this > >>delay constantly,on multiple lists. The bigger the list gets, the slower the > >>list gets (and the more loaded the server gets, right Marc? :-)). > >> > > > >Note

Re: [HACKERS] Link to bug webpage

2001-08-23 Thread Hannu Krosing
David Ford wrote: > > Tom Lane wrote: > > >Peter remarked that he wouldn't use a bug database unless it has some > >input filtering to remove all the non-bug issues that currently clutter > >the pgsql-bug archives. So the first thing to decide is the purpose of the bug database, do we want to

Re: [HACKERS] Link to bug webpage

2001-08-23 Thread David Ford
Tom Lane wrote: >>The last worthwhile item on this guy's list is changing ownership of a >>database. Well, I haven't yet had to do this: can we do this easily? >> >It could be better. See recent "Multiple Servers" thread over in >pg-admin, notably >http://fts.postgresql.org/db/mw/msg.html?mid=

Re: [HACKERS] Re: List response time...

2001-08-23 Thread David Ford
Vince Vielhaber wrote: >ooohh I've been raggin on >Marc on that one for well over a year, maybe two.. I started using >qmail when it was still in .7something beta and never looked back. The >folks at Security Focus have moved all of the lists to ezml

Re: [HACKERS] Re: List response time...

2001-08-23 Thread David Ford
Ian Lance Taylor wrote: >Both qmail and postfix radically outperform sendmail for large mailing >list delivery on identical hardware. It seems strange to me to say >that there is no sendmail issue when sendmail itself is the issue. >The queuing structure sendmail uses is simply wrong when a sing

Re: [HACKERS] Re: List response time...

2001-08-23 Thread David Ford
> > >You are seeing sendmail's poorly designed queuing behaviour in action. >sendmail limits itself by outgoing messages, rather than outgoing >deliveries. This causes one slow delivery to hold up many fast >deliveries. > Again, all in the configurationrinse, repeat. Simply change your queu

Re: [HACKERS] List response time...

2001-08-23 Thread David Ford
> > >All the delay seems to be in transferring the message from >postgresql.org to webmail.postgresql.org ... which are the same >machine, or at least the same IP address. What's up with that? > Looks like sendmail? Change your queue runs to be more aggressive. I have an mc file on http://blu

Re: [HACKERS] Re: List response time...

2001-08-23 Thread David Ford
Ian Lance Taylor wrote: >>Mailing lists don't scale well to large numbers of subscribers. I see this >>delay constantly,on multiple lists. The bigger the list gets, the slower the >>list gets (and the more loaded the server gets, right Marc? :-)). >> > >Note that the postgresql.org mail serve

Re: [HACKERS] Link to bug webpage

2001-08-23 Thread David Ford
Tom Lane wrote: >Peter remarked that he wouldn't use a bug database unless it has some >input filtering to remove all the non-bug issues that currently clutter >the pgsql-bug archives. I tend to agree with him. A possible way to >handle that is to set up bug-input like a closed mailing list: on

Re: [HACKERS] Link to bug webpage

2001-08-23 Thread Hannu Krosing
David Ford wrote: > > Bruce Momjian wrote: > > >>>That is the real question. Do we want to rely more heavily on a bug > >>>database rather than the email lists? I haven't heard many say they > >>>want that. > >>> > > I'd very much like a bugzilla because I can do research on bugs past or > pr

Re: [HACKERS] Link to bug webpage

2001-08-23 Thread David Ford
Tom Lane wrote: >Given a threaded index, you aren't wading through "a few hundred posts". >Agreed, a nice canned database entry might be easier to look at, but >who's going to expend the time to maintain the database? Unless someone >actively takes responsibility for keeping the DB up to date, i

Re: [HACKERS] Link to bug webpage

2001-08-23 Thread David Ford
Bruce Momjian wrote: >How do you communicate that to people looking at the content? Do you >put in big letters at the top, "This list is not complete." The fact an >items is missing from the list (new bug) is just as important as an item >appearing on the list. > How do you distinguish that fr

Re: [HACKERS] Link to bug webpage

2001-08-23 Thread David Ford
Bruce Momjian wrote: >OK, what value does a bug database have over a TODO list? > history of a bug, entire discussion about that bug on the same page with hyperlinked patches and other attachments. ability of everyone to add to the bug documentation without submitting it to the TODO maintainer

Re: [HACKERS] Link to bug webpage

2001-08-23 Thread David Ford
Serguei Mokhov wrote: >Maybe a better solution for the short run would be >return the page where it was, and but links to the pgsql-bugs and >pgsql-hackers archives with some sort of exmplanatory saying that "this is >a *complete* (it must be complete of course) list of bugs, which are >being e

Re: [HACKERS] Link to bug webpage

2001-08-23 Thread David Ford
Bruce Momjian wrote: >>>That is the real question. Do we want to rely more heavily on a bug >>>database rather than the email lists? I haven't heard many say they >>>want that. >>> I'd very much like a bugzilla because I can do research on bugs past or present now as well as know the status o

Re: [HACKERS] Link to bug webpage

2001-08-23 Thread David Ford
I vote for pgsql bugzilla. If I have a bug to report I'll file it. I file plenty of moz bugs and aid in resolving them. -d Bruce Momjian wrote: >>There are over 400 in the database. If that's a small percentage then >>so be it, but it's still over 400 bugs that appear to have been ignored.

Re: [HACKERS] Link to bug webpage

2001-08-23 Thread David Ford
Honestly I wasn't aware postgres had any bugs... tongue in cheek. What I mean is PG works very nicely for me and I haven't had any problems with it, so that means "no bugs". Yes there are bugs and things to be solved, but from my perspective it is already a pretty darn good piece of software

Re: [HACKERS] User locks code

2001-08-23 Thread Hannu Krosing
Tom Lane wrote: > > I definitely agree with Vadim here: it's fairly silly that the > contrib userlock code is GPL'd, when it consists only of a few dozen > lines of wrapper for the real functionality that's in the main backend. As it seems a generally useful feature, it could at least be LGPL'd

RE: [HACKERS] A couple items on TODO

2001-08-23 Thread Christopher Kings-Lynne
> That's good information, now I have a better idea what I am > looking for. I am > using Source Navigator (good recommendation I got reading this > list). I am > basically just trying to find either variables that can be > declared const, or > inconsistancies (as Chris mentions). > > If anyone el

[HACKERS] Re: [PATCHES] encoding names

2001-08-23 Thread Tatsuo Ishii
> > BTW, what's wrong with "encoding"? I don't think, for example EUC-JP > > or utf-8, are character set names. > > Hmm, SQL talks of character sets, it has a CHARACTER_SETS view and such. > It's slightly incorrect, I agree. > > Maybe we should not touch getdatabaseencoding() right now, given th

Re: [HACKERS] Re: OLAP, Aggregates, and order of operations

2001-08-23 Thread Tom Lane
mlw <[EMAIL PROTECTED]> writes: > So, what would the order of operation be? > I assume "my_array_constructor()" would be called first, and the return value > then be passed to "my_aggregate()" along with the state value being set to the > initial state, then subsequent calls to "my_array_construc

Re: [HACKERS] A couple items on TODO

2001-08-23 Thread Jeff Davis
> > > *Add use of 'const' for variables in source tree > > > > I would discuss this item with the hackers list and see exactly what > > people want done with it. > > I have noticed while working on command.c and heap.c that half the > functions pass 'const char *' and the other half pass just 'cha

[HACKERS] Re: OLAP, Aggregates, and order of operations

2001-08-23 Thread mlw
Tom Lane wrote: > > mlw <[EMAIL PROTECTED]> writes: > >> If the needed parameters are all the same datatype, maybe you could put > >> them into an array and pass the array as a single argument to the > >> aggregate. > > > How would you do this without having to make multiple SQL calls? > > I wa

Re: [HACKERS] A couple items on TODO

2001-08-23 Thread Tom Lane
"Christopher Kings-Lynne" <[EMAIL PROTECTED]> writes: > I have noticed while working on command.c and heap.c that half the functions > pass 'const char *' and the other half pass just 'char *'. This is a pain Yeah, people have started to use 'const' in new code, but the older stuff doesn't use i

[HACKERS] Permissions for large-object comments

2001-08-23 Thread Tom Lane
Shane Wegner <[EMAIL PROTECTED]> writes: > test=> \lo_unlink 89803 > ERROR: pg_description: Permission denied. Hmm. Maybe those client-side comment manipulations in psql aren't such a hot idea. I know I never tested them as non-superuser :-( Shane, try that from a superuser Postgres userid.

Re: [HACKERS] A couple items on TODO

2001-08-23 Thread Bruce Momjian
> > > As I was browsing TODO, I noticed a couple unassigned items > > that I may be > > > able to help with (I haven't worked with the source before): > > > > > > *Add use of 'const' for variables in source tree > > > > I would discuss this item with the hackers list and see exactly what > > peopl

RE: [HACKERS] A couple items on TODO

2001-08-23 Thread Christopher Kings-Lynne
> > As I was browsing TODO, I noticed a couple unassigned items > that I may be > > able to help with (I haven't worked with the source before): > > > > *Add use of 'const' for variables in source tree > > I would discuss this item with the hackers list and see exactly what > people want done with

[HACKERS] ERP Applications on Postgresql -- ERPTool

2001-08-23 Thread Amandeep Singh
Hi Everyone, Just wanted to let you all know that I have been working on development of financial applications using,java, javascript, javabeans and of course PostgreSQL database for past one year. I was out of touch with the community for this time and it kinda feels like as if I am coming out tr

Re: [HACKERS] CURRENT OF cursor without OIDs

2001-08-23 Thread Hiroshi Inoue
"Mikheev, Vadim" wrote: > > > > AFAICS, if you are holding an open SQL cursor, it is sufficient > > > to check that ctid hasn't changed to know that you have the > > > same, un-updated tuple. Under MVCC rules, VACUUM will be unable > > > to delete any tuple that is visible to your open transaction

RE: [HACKERS] CURRENT OF cursor without OIDs

2001-08-23 Thread Mikheev, Vadim
> > AFAICS, if you are holding an open SQL cursor, it is sufficient > > to check that ctid hasn't changed to know that you have the > > same, un-updated tuple. Under MVCC rules, VACUUM will be unable > > to delete any tuple that is visible to your open transaction, > > and so new-style VACUUM canno

Re: [HACKERS] Re: [JDBC] New backend functions? [was Re: JDBC changes for 7.2... some questions...]

2001-08-23 Thread Tom Lane
Hiroshi Inoue <[EMAIL PROTECTED]> writes: > Hmm OIDs would be optional in 7.2. > Is it known(announced) to pgsql-jdbc list ? Doesn't seem particularly relevant to this issue though. An application that's using OIDs to identify rows would certainly not choose to create its tables without OIDs.

Re: [HACKERS] Re: [JDBC] New backend functions? [was Re: JDBC changes for 7.2... some questions...]

2001-08-23 Thread Hiroshi Inoue
Tom Lane wrote: > > Ned Wolpert <[EMAIL PROTECTED]> writes: > > Should the backend support the function getLastInsertedOID() or even > > getLastInsertedPrimaryKey() (or both)? > > I don't think you have any chance of doing the latter --- for one thing, > how are you going to declare that function

Re: [HACKERS] CURRENT OF cursor without OIDs

2001-08-23 Thread Hiroshi Inoue
Tom Lane wrote: > > "Zeugswetter Andreas SB SD" <[EMAIL PROTECTED]> writes: > > Hiroshi wrote: > >> In addtion, xmin wouldn't be so reliable > >> in the near future because it would be updated to FrozenXID > >> (=2) by vacuum. > > > I thought concurrent vacuum with an open cursor is not at all po

Re: [HACKERS] User locks code

2001-08-23 Thread Bruce Momjian
> I definitely agree with Vadim here: it's fairly silly that the > contrib userlock code is GPL'd, when it consists only of a few dozen > lines of wrapper for the real functionality that's in the main backend. > The only thing this licensing setup can accomplish is to discourage > people from usin

Re: [HACKERS] User locks code

2001-08-23 Thread Tom Lane
I definitely agree with Vadim here: it's fairly silly that the contrib userlock code is GPL'd, when it consists only of a few dozen lines of wrapper for the real functionality that's in the main backend. The only thing this licensing setup can accomplish is to discourage people from using the user

Re: [HACKERS] User locks code

2001-08-23 Thread Bruce Momjian
> > Well, yes, it calls user_lock(), but the communication is not > > OS-linked, it is linked over a network socket, so I don't think > > the GPL spreads over a socket. Just as telnet'ing somewhere an > > typing 'bash' doesn't make your telnet GPL'ed, so I think the > > client code is safe. To the

RE: [HACKERS] User locks code

2001-08-23 Thread Mikheev, Vadim
> > Application would explicitly call user_lock() functions in > > queries, so issue is still not clear for me. And once again - > > Well, yes, it calls user_lock(), but the communication is not > OS-linked, it is linked over a network socket, so I don't think > the GPL spreads over a socket. Jus

Re: [HACKERS] User locks code

2001-08-23 Thread Bruce Momjian
> > No, you were clear. > > So I missed your "near-zero cost" sentence. OK. > > My assumption is that once you link that code into > > the backend, the entire backend is GPL'ed and any other > > application code you link into it is also (stored procedures, > > triggers, etc.) I don't think your

Re: [HACKERS] User locks code

2001-08-23 Thread Massimo Dal Zotto
> 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 i

Re: [HACKERS] Assessment on namespace clean include file names

2001-08-23 Thread Tom Lane
Peter Eisentraut <[EMAIL PROTECTED]> writes: > [1] -- The libpq-int.h draws in a lot of internal structure, true to the > name. Something should be done about that, such as not installing it, or > moving it to a "hidden" place. Ideas? libpq-int.h was always intended to be strictly internal. I

RE: [HACKERS] User locks code

2001-08-23 Thread Mikheev, Vadim
> > > I assume any code that uses contrib/userlock has to be GPL'ed, > > > meaning it can be used for commercial purposes but can't be sold > > > as binary-only, and actually can't be sold for much because you > > > have to make the code available for near-zero cost. > > > > I'm talking not about

Re: [HACKERS] User locks code

2001-08-23 Thread Bruce Momjian
> > > For example, one could use user-locks for processing incoming > > > orders by multiple operators: > > > select * from orders where user_lock(orders.oid) = 1 LIMIT 1 > > > - so each operator would lock one order for processing and > > > operators wouldn't block each other. So, could such > >

RE: [HACKERS] User locks code

2001-08-23 Thread Mikheev, Vadim
> > For example, one could use user-locks for processing incoming > > orders by multiple operators: > > select * from orders where user_lock(orders.oid) = 1 LIMIT 1 > > - so each operator would lock one order for processing and > > operators wouldn't block each other. So, could such > > applicatio

Re: [HACKERS] User locks code

2001-08-23 Thread Bruce Momjian
> > > If the licence becomes a problem I can easily change it, > > > but I prefer the GPL if possible. > > > > We just wanted to make sure the backend changes were not > > under the GPL. > > No, Bruce - backend part of code is useless without interface > functions and I wonder doesn't GPL-ed int

RE: [HACKERS] User locks code

2001-08-23 Thread Mikheev, Vadim
> > If the licence becomes a problem I can easily change it, > > but I prefer the GPL if possible. > > We just wanted to make sure the backend changes were not > under the GPL. No, Bruce - backend part of code is useless without interface functions and I wonder doesn't GPL-ed interface implement

[HACKERS] Re: OLAP, Aggregates, and order of operations

2001-08-23 Thread mlw
Tom Lane wrote: > mlw <[EMAIL PROTECTED]> writes: > > I need to do some OLAP stuff, and I asked previously if there were a way > > to pass multiple parameters to an aggrigate function. i.e.: > > I looked through the code and it is non-trivial to do, > > Offhand I don't know of any fundamental rea

Re: [HACKERS] Re: [JDBC] New backend functions? [was Re: JDBC ch

2001-08-23 Thread Ned Wolpert
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 23-Aug-2001 Tom Lane wrote: >> I assume this OID would be associated with a client connection. >> Is this going to work with client side connection pooling? > > Good point. Will this really get around the original poster's problem?? It must. If

Re: [HACKERS] Toast, Text, blob bytea Huh?

2001-08-23 Thread Rene Pijlman
On Thu, 23 Aug 2001 13:47:01 -0400, you wrote: >1. I cant get a clear answer on what kind of data type to use for my large >text string? TEXT, ???, ??? or something about TOAST >I have seen in the e-mail archive but cant find any documentaion? TOAST is not a data type, but a project that extende

Re: [HACKERS] Remove --enable-syslog?

2001-08-23 Thread Tom Lane
Peter Eisentraut <[EMAIL PROTECTED]> writes: > Is there any platform that does not supply the standard syslog > interface? Why worry? Do AC_CHECK_FUNC(syslog), or some such. regards, tom lane ---(end of broadcast)--- TIP 2

Re: [HACKERS] Re: [JDBC] New backend functions? [was Re: JDBC changes for 7.2... some questions...]

2001-08-23 Thread Tom Lane
Rene Pijlman <[EMAIL PROTECTED]> writes: > On Thu, 23 Aug 2001 14:44:19 -0400, you wrote: >> seems doable and reasonable to me: whenever an OID is returned >> to the client in an INSERT or UPDATE command result, also stash it in >> a static variable that can be picked up by this function. > What

[HACKERS] [PATCH] Win32 errno a little bit safer

2001-08-23 Thread Magnus Naeslund\(f\)
Hello, i just reviewed the win32 errno patch and i saw that maybe i didn't really played it totally safe in my last suggestion, the system table might pick up the msg but not the netmsg.dll, so better try both. I also added a hex printout of the "errno" appended to all messages, that's nicer. If

[HACKERS] Reverse Engineering

2001-08-23 Thread Peter Harvey
There seem to be several ways to get at just about anything in the Catalog Tables. The ODBC driver, psql, and pg_dump typically use slightly diff sql and you guys have suggested even better ways. Forgive me as I ask for more. How do I determine the foriegn keys in a table? I see pg_class.relfkey

Re: [HACKERS] Remove --enable-syslog?

2001-08-23 Thread Bruce Momjian
> Originally, I added --enable-syslog because it used to be an option in > config.h only. However, I wonder why we don't always compile it in, it's > off by default anyway. The only reason I could think of is a portability > problem. Is there any platform that does not supply the standard syslo

Re: [HACKERS] Re: Escaping strings for inclusion into SQL queries

2001-08-23 Thread Florian Weimer
Christopher Masto <[EMAIL PROTECTED]> writes: > I only have one issue - the SQL standard seems to support the use > of '' to escape a single quote, but not \'. Though PostgreSQL has > an extended notion of character string literals, I think that the > usual policy of using the standard interface

[HACKERS] Re: [JDBC] New backend functions? [was Re: JDBC changes for 7.2.

2001-08-23 Thread Ned Wolpert
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 I like your function name, get_last_returned_oid(). That works for me. On 23-Aug-2001 Tom Lane wrote: > Ned Wolpert <[EMAIL PROTECTED]> writes: >> Should the backend support the function getLastInsertedOID() or even >> getLastInsertedPrimaryKey() (

Re: [HACKERS] Toast, Text, blob bytea Huh?

2001-08-23 Thread Joe Conway
> I'm trying my best to convert from MySQL to PgSQL but I cant get a good > clear answer about > certian issures.Mainly TEXT, TOAST,BLOB , BYTEA etc. > It was an easy task in mysql but everything in the archives about , text , > toast and bytea is just > confusing me with postgresql. I have Bruce

[HACKERS] Assessment on namespace clean include file names

2001-08-23 Thread Peter Eisentraut
Here is what we install by default and what we could do about it: c.h [1] config.hrename to pg_config.h ecpgerrno.h ok ecpglib.h ok ecpgtype.h ok iodbc/ [3] iodbc.h isql.h isqlext.h lib/

Re: [HACKERS] Re: [JDBC] New backend functions? [was Re: JDBC changes for 7.2... some questions...]

2001-08-23 Thread Rene Pijlman
On Thu, 23 Aug 2001 14:44:19 -0400, you wrote: >Ned Wolpert <[EMAIL PROTECTED]> writes: >> Should the backend support the function getLastInsertedOID()? > >seems doable and reasonable to me: whenever an OID is returned >to the client in an INSERT or UPDATE command result, also stash it in >a stati

Re: [HACKERS] Re: [JDBC] New backend functions? [was Re: JDBC ch

2001-08-23 Thread Ned Wolpert
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 23-Aug-2001 Rene Pijlman wrote: > What should the semantics be exactly? > > How about the multiple INSERT's i've been reading about on > hackers? ... Only the OID of the last row inserted by the > statement? > > How about an UPDATE statement that

[HACKERS] Remove --enable-syslog?

2001-08-23 Thread Peter Eisentraut
Originally, I added --enable-syslog because it used to be an option in config.h only. However, I wonder why we don't always compile it in, it's off by default anyway. The only reason I could think of is a portability problem. Is there any platform that does not supply the standard syslog interf

[HACKERS] Re: OLAP, Aggregates, and order of operations

2001-08-23 Thread Tom Lane
mlw <[EMAIL PROTECTED]> writes: >> If the needed parameters are all the same datatype, maybe you could put >> them into an array and pass the array as a single argument to the >> aggregate. > How would you do this without having to make multiple SQL calls? I was thinking something like sele

[HACKERS] Re: [JDBC] New backend functions? [was Re: JDBC changes for 7.2... some questions...]

2001-08-23 Thread Tom Lane
Ned Wolpert <[EMAIL PROTECTED]> writes: > Should the backend support the function getLastInsertedOID() or even > getLastInsertedPrimaryKey() (or both)? I don't think you have any chance of doing the latter --- for one thing, how are you going to declare that function's return type? But the forme

Re: [HACKERS] A couple items on TODO

2001-08-23 Thread Peter Eisentraut
Tom Lane writes: > AFAIR, elog at NOTICE or DEBUG level isn't really supposed to have any > side-effects. The bigger issue is that you have to be careful about > using it in certain places, mainly during startup or for reporting > communication errors. (send failure -> elog -> tries to send mes

[HACKERS] Re: Escaping strings for inclusion into SQL queries

2001-08-23 Thread Christopher Masto
On Wed, Aug 22, 2001 at 05:16:44PM +, Florian Weimer wrote: > We therefore suggest that a string escaping function is included in a > future version of PostgreSQL and libpq. A sample implementation is > provided below, along with documentation. I use Perl, which (through DBD::Pg) has a "quot

[HACKERS] Toast, Text, blob bytea Huh?

2001-08-23 Thread jason . ory
I'm trying my best to convert from MySQL to PgSQL but I cant get a good clear answer about certian issures.Mainly TEXT, TOAST,BLOB , BYTEA etc. It was an easy task in mysql but everything in the archives about , text , toast and bytea is just confusing me with postgresql. I have Bruces's book an

Re: [HACKERS] A couple items on TODO

2001-08-23 Thread Bruce Momjian
> AFAIR, elog at NOTICE or DEBUG level isn't really supposed to have any > side-effects. The bigger issue is that you have to be careful about > using it in certain places, mainly during startup or for reporting > communication errors. (send failure -> elog -> tries to send message to > client -

Re: [HACKERS] OLAP, Aggregates, and order of operations

2001-08-23 Thread Tom Lane
mlw <[EMAIL PROTECTED]> writes: > I need to do some OLAP stuff, and I asked previously if there were a way > to pass multiple parameters to an aggrigate function. i.e.: > I looked through the code and it is non-trivial to do, Offhand I don't know of any fundamental reason why it couldn't be done,

Re: [HACKERS] A couple items on TODO

2001-08-23 Thread Tom Lane
Peter Eisentraut <[EMAIL PROTECTED]> writes: > Jeff Davis writes: >> *Convert remaining fprintf(stderr,...)/perror() to elog() > This isn't quite as easy as a mechanical conversion, mind you, because > elog of course has rather complex side effects besides printing out a > message. AFAIR, elog a

[HACKERS] Re: [PATCHES] encoding names

2001-08-23 Thread Peter Eisentraut
Tatsuo Ishii writes: > > But getdbencoding isn't semantically different from the old > > getdatabaseencoding. "encoding" isn't the right term anyway, methinks, it > > should be "character set". So maybe database_character_set()? (No "get" > > please.) > > I'm not a native English speaker, so p

[HACKERS] OLAP, Aggregates, and order of operations

2001-08-23 Thread mlw
I need to do some OLAP stuff, and I asked previously if there were a way to pass multiple parameters to an aggrigate function. i.e.: select mycube(value1, value2, value3) from table group by value1; I looked through the code and it is non-trivial to do, one would have to alter the grammar to inc

Re: [HACKERS] A couple items on TODO

2001-08-23 Thread Peter Eisentraut
Jeff Davis writes: > *Convert remaining fprintf(stderr,...)/perror() to elog() This isn't quite as easy as a mechanical conversion, mind you, because elog of course has rather complex side effects besides printing out a message. What we'd need is some sort of option to print a message of a give

Re: [HACKERS] CURRENT OF cursor without OIDs

2001-08-23 Thread Tom Lane
"Zeugswetter Andreas SB SD" <[EMAIL PROTECTED]> writes: > Hiroshi wrote: >> In addtion, xmin wouldn't be so reliable >> in the near future because it would be updated to FrozenXID >> (=2) by vacuum. > I thought concurrent vacuum with an open cursor is not at all possible. > If it were, it would

Re: [HACKERS] A couple items on TODO

2001-08-23 Thread Bruce Momjian
> As I was browsing TODO, I noticed a couple unassigned items that I may be > able to help with (I haven't worked with the source before): > > *Add use of 'const' for variables in source tree I would discuss this item with the hackers list and see exactly what people want done with it. > *Conv

Re: [HACKERS] A couple items on TODO

2001-08-23 Thread Bruce Momjian
> > I also noticed that this item has been there for a while: > > *Encrpyt passwords in pg_shadow table using MD5 (Bruce, Vince) > > While you are there do you think it's possible to make an mcrypt function? > :) See contrib/pgcrypto. -- Bruce Momjian| http://candle.

Re: [HACKERS] Re: bugs - lets call an exterminator!

2001-08-23 Thread Tom Lane
Vince Vielhaber <[EMAIL PROTECTED]> writes: > On Thu, 23 Aug 2001, Colin 't Hart wrote: >> 5. I think Bugzilla's concepts of products, components and versions fit >> the way we work. >> I envisage that 'Postgres', 'Interfaces', 'Languages' might be products >> that we would have. >> Within 'Postgr

Re: [HACKERS] Reverse Engineering

2001-08-23 Thread Tom Lane
Hannu Krosing <[EMAIL PROTECTED]> writes: > Peter Harvey wrote: >> 2. How do I determine the AccessMethod specified when an index was >> created? > you can parse it from pg_indexes.indexdef ... which relies on pg_get_indexdef(index OID). Or, look at pg_class.relam, which is zero for regular ta

[HACKERS] Re: [GENERAL] Postgresql log analyzer

2001-08-23 Thread Gilles DAROLD
Hi all, I have updated the drafts for pg log analyzer especially for EXPLAIN output. What do you want to see as statistics result. Currently I only output the following: - scan type - startup cost - total cost - number of rows returned - and the width There's certainly other usefull informatio

Re: [HACKERS] Re: bugs - lets call an exterminator!

2001-08-23 Thread Vince Vielhaber
On Thu, 23 Aug 2001, Colin 't Hart wrote: > Vince asks: > > > Everybody keeps saying bugzilla. What EXACTLY will bugzilla do for us > > that would make me want to learn it and install it? BTW, the current > > wheel was invented a year ago 'cuze nothing really fit what we needed. > > The reasons

Re: [HACKERS] A couple items on TODO

2001-08-23 Thread speedboy
> I also noticed that this item has been there for a while: > *Encrpyt passwords in pg_shadow table using MD5 (Bruce, Vince) While you are there do you think it's possible to make an mcrypt function? :) ---(end of broadcast)--- TIP 5: Have you che

[HACKERS] A couple items on TODO

2001-08-23 Thread Jeff Davis
As I was browsing TODO, I noticed a couple unassigned items that I may be able to help with (I haven't worked with the source before): *Add use of 'const' for variables in source tree *Convert remaining fprintf(stderr,...)/perror() to elog() Neither seemed to be active at all. I also noticed t

RE: [HACKERS] Locale by default?

2001-08-23 Thread Zeugswetter Andreas SB SD
> > I don't understand why you object the idea giving PostgreSQL the > > ability to turn off the locale support in configuration/compile > > time. In that way, there's no inconveniences for "many users". > > I don't mind at all the ability to turn it off. My point is that the > compile time is

RE: [HACKERS] CURRENT OF cursor without OIDs

2001-08-23 Thread Zeugswetter Andreas SB SD
Hiroshi wrote: > > > > >There could be DELETE operations for the tuple > > > > >from other backends also and the TID may disappear. > > > > >Because FULL VACUUM couldn't run while the cursor > > > > >is open, it could neither move nor remove the tuple > > > > >but I'm not sure i

[HACKERS] Re: bugs - lets call an exterminator!

2001-08-23 Thread Colin 't Hart
Vince asks: > Everybody keeps saying bugzilla. What EXACTLY will bugzilla do for us > that would make me want to learn it and install it? BTW, the current > wheel was invented a year ago 'cuze nothing really fit what we needed. The reasons I would choose Bugzilla: 1. It's *not* written by us