Re: [HACKERS] 7.5 features

2004-04-28 Thread Tom Lane
Bruce Momjian <[EMAIL PROTECTED]> writes: > What we really need is for these folks to start finalizing their patches > and get them submitted. Eggzackle ... my point is that I see the win32 train leaving the station pretty soon, and I don't see anyone else ready to get on board.

Re: [HACKERS] 7.5 features

2004-04-28 Thread Bruce Momjian
Tom Lane wrote: > Bruce Momjian <[EMAIL PROTECTED]> writes: > > Here are features that are being worked on, hopefully for 7.5: > > o tablespaces (Gavin) > > o nested transactions (Alvaro) > > o two-phase commit (Heikki Linnakangas) > > o integrated pg_autovacuum (O'Connor) > >

Re: [HACKERS] linked list rewrite

2004-04-28 Thread Bruce Momjian
Neil Conway wrote: > On 28-Apr-04, at 12:12 AM, Bruce Momjian wrote: > > I never liked "cell" myself. It is too vague to me. But I see your > > point that list_head you would think returns the head of the list, not > > the first element in the list. > > I'm not sure what you mean: list_head() re

[HACKERS] PITR logging control program

2004-04-28 Thread Bruce Momjian
Simon Riggs wrote: > > When the server is not running there is nothing to archive, so I don't follow > > this argument. > > The running server creates xlogs, which are still available for archive > even when the server is not running... > > Overall, your point is taken, with many additional comm

Re: [HACKERS] linked list rewrite

2004-04-28 Thread Neil Conway
On 27-Apr-04, at 10:07 PM, Tom Lane wrote: [ ... on the topic of list_union(), list_union_int() and friends ] I guess the real question in my mind is whether there is any true gain in symmetry or readability by doing it this way. I think there's a small gain: everything else being equal, an API wi

Re: [HACKERS] linked list rewrite

2004-04-28 Thread Neil Conway
On 28-Apr-04, at 12:12 AM, Bruce Momjian wrote: I never liked "cell" myself. It is too vague to me. But I see your point that list_head you would think returns the head of the list, not the first element in the list. I'm not sure what you mean: list_head() returns the "head of the list", which i

Re: [HACKERS] PITR Phase 2 - Design Planning

2004-04-28 Thread Andrew Dunstan
Simon Riggs said: > On Wed, 2004-04-28 at 18:35, Andrew Dunstan wrote: >> Simon Riggs wrote: >> >> >On Wed, 2004-04-28 at 05:00, Bruce Momjian wrote: >> > >> > >> >>What if we added transaction id to log_line_prefix? The user could >> >>then log all queries and find the xid where they want to stop

[HACKERS] error about tcl/tk

2004-04-28 Thread 帅猛
dear all i compiled postgresql7.4 ,but when type in make ,error appeared as following: bison -y -d gram.y NONE:0: /usr/bin/m4: ERROR: EOF in string sed -e 's/yy/plpgsql_yy/g' -e 's/YY/PLPGSQL_YY/g' < y.tab.c > ./pl_gram.c /bin/sh: line 1: y.tab.c: No such file or directory make[4]: ***

Re: [HACKERS] Nasty security bug with clustering

2004-04-28 Thread Christopher Kings-Lynne
I'm in the middle of reviewing (read whacking around) Rod Taylor's patch for multiple operations in ALTER TABLE, so I'm afraid that no patch in the same area is likely to apply cleanly after the dust settles :-( OK, Bruce - just ignore the patch I sent in. I'll refactor it after Tom commits. Chr

Re: [HACKERS] PITR Phase 2 - Design Planning

2004-04-28 Thread Simon Riggs
On Wed, 2004-04-28 at 18:35, Andrew Dunstan wrote: > Simon Riggs wrote: > > >On Wed, 2004-04-28 at 05:00, Bruce Momjian wrote: > > > > > >>What if we added transaction id to log_line_prefix? The user could then > >>log all queries and find the xid where they want to stop, but of course > >>that

Re: [HACKERS] [pgsql-advocacy] What can we learn from MySQL?

2004-04-28 Thread Joshua D. Drake
Does anyone know of an open source project that *has* successfully displaced a market of mature, established products WITHOUT a commercial entity providing marketing, support & direction? gcc? Nope most big houses will use Intel/Borland/Vc++ or whatever comes with Solaris. In fact, I can no

Re: [HACKERS] signal 11 on AIX: 7.4.2

2004-04-28 Thread Andrew Sullivan
On Mon, Apr 26, 2004 at 03:19:21PM -0400, Bruce Momjian wrote: > > Has this been resolved? Not as far as I know. Unfortunately, the problem happened in an environment I Can't Play With, and I haven't been able to reproduce it elsewhere. I've been trying some alternative approaches to causing it

Re: [HACKERS] [pgsql-advocacy] What can we learn from MySQL?

2004-04-28 Thread scott.marlowe
On Tue, 27 Apr 2004, Andrew Payne wrote: > > Scott Marlowe wrote: > > > While Apache is and has been wildly popular for bulk hosing and domain > > parking, for serious commercial use, Netscape's enterprise server, now Sun > > One, has long been a leader in commercial web sites. > > Netscrape/Su

Re: [HACKERS] PITR Phase 2 - Design Planning

2004-04-28 Thread Andrew Dunstan
Simon Riggs wrote: On Wed, 2004-04-28 at 05:00, Bruce Momjian wrote: What if we added transaction id to log_line_prefix? The user could then log all queries and find the xid where they want to stop, but of course that assumes they have enabled such logging, and they have access to the logs.

Re: How to Welcome Windows Users (was Re: [HACKERS] 7.5 features)

2004-04-28 Thread scott.marlowe
On Tue, 27 Apr 2004, Richard Huxton wrote: > On Tuesday 27 April 2004 14:27, Bruce Momjian wrote: > > Here are features that are being worked on, hopefully for 7.5: > > > > o tablespaces (Gavin) > > o nested transactions (Alvaro) > > o two-phase commit (Heikki Linnakangas) > > o

Re: [HACKERS] PITR Phase 2 - Design Planning

2004-04-28 Thread Simon Riggs
On Wed, 2004-04-28 at 05:00, Bruce Momjian wrote: > Simon Riggs wrote: > > On Tue, 2004-04-27 at 21:56, Rod Taylor wrote: > > > > Overall, I'd refer back to the points Bruce raised - you certainly do > > > > need a way of finding out the time to recover to, and as others have > > > > said also, tim

Re: [HACKERS] PITR Phase 1 - Code Overview (1)

2004-04-28 Thread Simon Riggs
On Wed, 2004-04-28 at 16:14, Peter Eisentraut wrote: > Am Tuesday 27 April 2004 19:59 schrieb Bruce Momjian: > > Peter Eisentraut wrote: > > > Simon Riggs wrote: > > > > New utility aimed at being located in src/bin/pg_arch > > > > > > Why isn't the archiver process integrated into the server? > >

Re: [HACKERS] [pgsql-advocacy] What can we learn from MySQL?

2004-04-28 Thread Bruce Momjian
Andrew Payne wrote: > > Bruce wrote: > > > > Does anyone know of an open source project that *has* successfully > displaced > > > a market of mature, established products WITHOUT a commercial entity > > > providing marketing, support & direction? > > > > Linux. It doesn't have a single company b

Re: [HACKERS] PITR Phase 1 - Code Overview (1)

2004-04-28 Thread Peter Eisentraut
Am Monday 26 April 2004 23:11 schrieb Simon Riggs: > ii) encourage (i.e. force) people using XLogArchive API to run as the > PostgreSQL owning-user (postgres). I think this is perfectly reasonable. ---(end of broadcast)--- TIP 9: the planner will i

Re: [HACKERS] PITR Phase 1 - Code Overview (1)

2004-04-28 Thread Peter Eisentraut
Am Tuesday 27 April 2004 19:59 schrieb Bruce Momjian: > Peter Eisentraut wrote: > > Simon Riggs wrote: > > > New utility aimed at being located in src/bin/pg_arch > > > > Why isn't the archiver process integrated into the server? > > I think it is because the archiver process has to be started/stop

Re: [HACKERS] PITR Phase 1 - Code Overview (1)

2004-04-28 Thread Peter Eisentraut
Am Tuesday 27 April 2004 22:21 schrieb Simon Riggs: > > Why isn't the archiver process integrated into the server? > You ask a reasonable question however. If pg_autovacuum exists, why > should pg_autoarch not work also? pg_autovacuum is going away to be integrated as a backend process. ---

Re: [HACKERS] Advice regarding configuration parameters

2004-04-28 Thread Thomas Hallgren
Patch posted on the patches list :-) Let me know what you think. - thomas "Joe Conway" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Thomas Hallgren wrote: > > Some very good suggestions where made here. What happens next? Will this end > > up in a TODO list where someone can "cl

Re: [HACKERS] pg ANY/SOME ambiguity wrt sql standard?

2004-04-28 Thread Tom Lane
Fabien COELHO <[EMAIL PROTECTED]> writes: > I'm looking into adding sql standard aggregates EVERY/ANY/SOME. > It seems to me that there is a syntax ambiguity with ANY and SOME: > CREATE TABLE bla(b BOOL); > SELECT TRUE = ANY(b) FROM bla; AFAICS this ambiguity is built into the SQL sta

Re: [HACKERS] Usability, MySQL, Postgresql.org, gborg, contrib,

2004-04-28 Thread Andrew Dunstan
Jon Jensen wrote: On Wed, 28 Apr 2004, Christopher Kings-Lynne wrote: Seriously - I'd like to raise my voice in favor of installing plpgsql in template1 by default. I haven't heard any good reason not to (nor even a bad reason). It has to work with older dumps that will try to recreate

Re: [HACKERS] Is there any method to keep table in memory at startup

2004-04-28 Thread Andrew Hammond
Vinay Jain wrote: Hi thank you for such a useful information... but actually in my case if i keep table in disk it significantly degrades performance and even for a table of 10 rows it takes 1-2 minutes I think u r not beliving it ! am i right for example I create a table in which i use m

Re: [HACKERS] pg ANY/SOME ambiguity wrt sql standard?

2004-04-28 Thread Fabien COELHO
> It seems to me that there is a syntax ambiguity with ANY and SOME: > > CREATE TABLE bla(b BOOL); > SELECT TRUE = ANY(b) FROM bla; > > Is parsed as an array-operator and there is a semantical error because no > array is provided. Now ANY could be an aggregate function call, and it > s

Re: [HACKERS] OLAP versus Materialized Views?

2004-04-28 Thread Tim Larson
On Wed, Apr 28, 2004 at 12:14:06AM +0100, Simon Riggs wrote: > Yes. There is Relational OLAP (ROLAP) and Multidimensional OLAP (MOLAP). > PostgreSQL can be used as a ROLAP server. For multidimentional on PostgreSQL there is Mondrian: http://sourceforge.net/projects/mondrian/ --Tim Larson -

[HACKERS] pg ANY/SOME ambiguity wrt sql standard?

2004-04-28 Thread Fabien COELHO
I'm looking into adding sql standard aggregates EVERY/ANY/SOME. It seems to me that there is a syntax ambiguity with ANY and SOME: CREATE TABLE bla(b BOOL); SELECT TRUE = ANY(b) FROM bla; Is parsed as an array-operator and there is a semantical error because no array is provided.

Re: [HACKERS] Nasty security bug with clustering

2004-04-28 Thread Tom Lane
Christopher Kings-Lynne <[EMAIL PROTECTED]> writes: >> No check is performed for being a superuser, the table owner or that it >> is a system table when marking an index for clustering: > I'm about to submit my SET WITHOUT CLUSTER patch, so I'll fix this bug > in that. I'm in the middle of revi

Re: [HACKERS] Usability, MySQL, Postgresql.org, gborg, contrib,

2004-04-28 Thread Jon Jensen
On Wed, 28 Apr 2004, Christopher Kings-Lynne wrote: > >>Seriously - I'd like to raise my voice in favor of installing plpgsql > >>in template1 by default. I haven't heard any good reason not to (nor > >>even a bad reason). > > It has to work with older dumps that will try to recreate pl/pgsql >

Re: [HACKERS] tcl error

2004-04-28 Thread Tom Lane
"=?gb2312?B?y6fDzQ==?=" <[EMAIL PROTECTED]> writes: > make[4]: Entering directory `/home/sm/pgsql7.4/src/pl/plpgsql/src' > bison -y -d gram.y > NONE:0: /usr/bin/m4: ERROR: EOF in string I'd say you have a broken bison installation; or possibly bison is okay but m4 isn't (recent bisons depend on m

Re: [HACKERS] Weirdness with OIDs and JOIN ON?

2004-04-28 Thread Tom Lane
Christopher Kings-Lynne <[EMAIL PROTECTED]> writes: > Why doesn't this work: > test=# select oid, relname, indisclustered from pg_index join pg_class > on indexrelid=oid where indexrelid > 17205; > ERROR: column "oid" does not exist The JOIN is a bit like a view --- it doesn't have any system co

[HACKERS] tcl error

2004-04-28 Thread 帅猛
dear all i tried using tcl with ./configure --with-tcl. errors appear when make: make[4]: Entering directory `/home/sm/pgsql7.4/src/pl/plpgsql/src' bison -y -d gram.y NONE:0: /usr/bin/m4: ERROR: EOF in string sed -e 's/yy/plpgsql_yy/g' -e 's/YY/PLPGSQL_YY/g' < y.tab.c > ./pl_gram.c /bin/

Re: [HACKERS] bitwise and/or aggregate functions?

2004-04-28 Thread Fabien COELHO
> > I thought of BIT_* because it is short and also used by mysql. > > Ingres has BIT_AND and BIT_OR functions, but they are not aggregates. > > > > I don't know where these standards are available online... It seems they > > are not available:-( > > Neil - can you check your SQL2003 copy to see i

Re: [HACKERS] btbulkdelete

2004-04-28 Thread Manfred Koizar
On Wed, 28 Apr 2004 00:08:48 -0400, Tom Lane <[EMAIL PROTECTED]> wrote: >> Is there a special reason for scanning the leaf pages in *logical* >> order, i.e. by following the opaque->btpo_next links? > >Yes. [..] interlocking between indexscans and deletions. Thanks for refreshing my memory. This

Re: [HACKERS] PITR Phase 2 - Design Planning

2004-04-28 Thread Peter Galbavy
Bruno Wolff III wrote: The context of my suggestion was for recovering up until a transaction which messed things up was committed. I did not want the problem transaction to be committed. If the problem transaction ran for a long time, there might be other transactions that I want to keep, if possi

Re: [HACKERS] Bringing PostgreSQL torwards the standard regarding

2004-04-28 Thread Hannu Krosing
scott.marlowe kirjutas T, 27.04.2004 kell 20:43: > As someone who has discussed this with Tom in the past, I seem to remember > that there were major issues with handling the system catalogs, because > internally, the backends treat the identifiers as if they have already > been quoted. why no

Re: [HACKERS] [GENERAL] TPC H data

2004-04-28 Thread Mark Kirkwood
What scale factor TPC H are you importing? additionally - might be worth giving the specs of the machine you are doing this on. (I seem to recall trying this with Pg 7.2 a while ago without this issue, mind you - think I had ~1G of Ram and used the scale fact 1 dataset, i.e 1G) regards Mark

Re: [HACKERS] bitwise and/or aggregate functions?

2004-04-28 Thread Christopher Kings-Lynne
Is there anything in SQL2003 about such operators? If there is, we should make sure we use the correct aggregate names. That's a point! I thought of BIT_* because it is short and also used by mysql. Ingres has BIT_AND and BIT_OR functions, but they are not aggregates. I don't know where these stan

[HACKERS] PITR Phase 1 Code Review

2004-04-28 Thread Simon Riggs
Please could the committers review my code with a view to committing it onto the main dev branch? There are additional cosmetic changes likely to be required, such as removing some dead comments and streamlining log output. Let me know whether these should occur before or after first commit. I'l

Re: [pgsql-advocacy] [HACKERS] What can we learn from MySQL?

2004-04-28 Thread Jean-Michel POURE
Dear Tim, These are execellent proposals. My only remark would be to build a step-by-step approach. In a first stage, we could set-up a minimal web page for the Win32 port: - PostgreSQL Win32 installer (possibly translated), - translation of the web page in 40 languages, - step-by-step installat

Re: [HACKERS] bitwise and/or aggregate functions?

2004-04-28 Thread Fabien COELHO
> > SELECT BIT_OR(aclitem_privs(...)) AS effective_privs > > FROM ... > > WHERE aclitem_grantee(...)=... AND ... ; > > Is there anything in SQL2003 about such operators? If there is, we > should make sure we use the correct aggregate names. That's a point! I thought of BIT_* because it is short

Re: [HACKERS] Nasty security bug with clustering

2004-04-28 Thread Christopher Kings-Lynne
No check is performed for being a superuser, the table owner or that it is a system table when marking an index for clustering: I'm about to submit my SET WITHOUT CLUSTER patch, so I'll fix this bug in that. Chris ---(end of broadcast)--- TIP 9: th

[HACKERS] Weirdness with OIDs and JOIN ON?

2004-04-28 Thread Christopher Kings-Lynne
Why doesn't this work: test=# select oid, relname, indisclustered from pg_index join pg_class on indexrelid=oid where indexrelid > 17205; ERROR: column "oid" does not exist I'm _joining_ on the oid column. If I qualify it, it works: test=# select pg_class.oid, relname, indisclustered from pg_ind

Re: [HACKERS] bitwise and/or aggregate functions?

2004-04-28 Thread Christopher Kings-Lynne
SELECT BIT_OR(aclitem_privs(...)) AS effective_privs FROM ... WHERE aclitem_grantee(...)=... AND ... ; Is there anything in SQL2003 about such operators? If there is, we should make sure we use the correct aggregate names. Chris ---(end of broadcast)--

Re: [HACKERS] bitwise and/or aggregate functions?

2004-04-28 Thread Fabien COELHO
> > Would it be appropriate to contribute BIT_AND and BIT_OR aggregates > > I am confused why you would use bit on integers Well, (I think) I need them to manipulate pg_catalog's aclitem bitfields. I plea not guilty for the design of pg_catalog;-) Moreover, I added aclitem accessors which return