Re: [PATCHES] Small plperl documentation patch

2005-10-18 Thread Andrew Dunstan
Patch applied, thanks. I actually told somebody off roundly about this not long ago. cheers andrew Greg Sabino Mullane wrote: Using $a and $b for temporary vars are bad form for our example, as they have special meaning in Perl. [snip] ---(end of broadcast)--

Re: [PATCHES] Small plperl documentation patch

2005-10-19 Thread Andrew Dunstan
Greg Sabino Mullane wrote: Tom Lane asked: Please, tell me that isn't so. $a is a reserved name now? What was Larry thinking? It's not that bad, really. $a and $b have special meaning inside of a sort subroutine as the two items being compared. Thus, you can write something like

Re: [PATCHES] patch for pg_autovacuum 8.0.x prevent segv for dropped

2005-10-20 Thread Andrew Dunstan
Small nit: please observe postgres community conventions regarding a) indentation (BSD style, tabsize 4) and b) diff type (context, not unidiff) The patch itself looks ok to me. cheers andrew daveg wrote: Apologies if this is old news, but pg_autovacuum in 8.0.x has the bad habit of SEGVin

Re: [PATCHES] patch for pg_autovacuum 8.0.x prevent segv for dropped

2005-10-20 Thread Andrew Dunstan
Tom Lane wrote: daveg <[EMAIL PROTECTED]> writes: Below is a patch for this that should apply against any 8.0.x. The change verifies that the catalog query returned some rows before accessing the row data. Surely this is completely broken? AFAICT you are testing the result from a V

[PATCHES] small code cleanup - gettimeofday()

2005-10-21 Thread Andrew Dunstan
The attached small patch removes the useless struct timezone argument to gettimeofday() in a few places and replaces it with NULL, bringing it into line with the rest of the code. If noone objects I will apply this soon. cheers andrew Index: src/backend/postmaster/postmaster.c =

Re: [PATCHES] small code cleanup - gettimeofday()

2005-10-22 Thread Andrew Dunstan
I wrote: The attached small patch removes the useless struct timezone argument to gettimeofday() in a few places and replaces it with NULL, bringing it into line with the rest of the code. If noone objects I will apply this soon. applied. cheers andrew ---(end

Re: [PATCHES] Another small pl/perl patch

2005-10-24 Thread Andrew Dunstan
Well, I personally almost always use indirect file handles rather than globals. But I don't know that using globals file handles (which is what I gather you are objecting to) is deprecated, is it? The perl docs are absolutely littered with examples. (I also use BSD style intentation consiste

Re: [PATCHES] Another small pl/perl patch

2005-10-24 Thread Andrew Dunstan
Greg Sabino Mullane wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Well, I personally almost always use indirect file handles rather than globals. But I don't know that using globals file handles (which is what I gather you are objecting to) is deprecated, is it? The perl docs are

Re: [PATCHES] Limit usage of tcop/dest.h

2005-11-02 Thread Andrew Dunstan
Alvaro Herrera said: > Hi, > > (It also allows PL/php to compile without having to patch > PHP nor PostgreSQL sources). > That will make some people I know happy ;-) cheers andrew ---(end of broadcast)--- TIP 2: Don't 'kill -9' the postmaster

Re: [PATCHES] [HACKERS] Reducing the overhead of NUMERIC data

2005-11-02 Thread Andrew Dunstan
[patches removed] Tom Lane wrote: Simon Riggs <[EMAIL PROTECTED]> writes: It seems straightforward enough to put in an additional test, similar to the ones already there so that if its too big for a decimal we make it a float straight away - only a float can be that big in that case. After

Re: [PATCHES] AIX FAQ addition

2005-11-04 Thread Andrew Dunstan
Christopher Browne wrote: Actually, there is a reason NOT to apply the patch in general on all platforms; it introduces logic (an if {} else {} statement) in a place where there wasn't previously one, which *presumably* slows things down somewhat. I don't know if the memcpy() calls are invoke

Re: [PATCHES] wishes correction of postgresql.conf.sample.

2005-11-10 Thread Andrew Dunstan
Hiroshi Saito wrote: Hi. Although this is a comment, it is bad condition. The syntax interpretation of a conf editor gets confused. We wish correction of postgresql.conf.sample. Fix (missing quote mark) applied to head and 8.1 branches. Thanks andrew ---(end

[PATCHES] drop if exists

2005-11-14 Thread Andrew Dunstan
Ther attached patch is for comment. It implements "drop if exists" as has recently been discussed. Illustration: andrew=# drop table blurflx; ERROR: table "blurflx" does not exist andrew=# drop table if exists blurflx; DROP TABLE andrew=# create table blurflx ( x text); CREATE TABLE andrew=#

Re: [PATCHES] drop if exists

2005-11-14 Thread Andrew Dunstan
exists blurflx; DROP TABLE andrew=# drop table blurflx; ERROR: table "blurflx" does not exist andrew=# revised patch attached. cheers andrew Tom Lane wrote: Andrew Dunstan <[EMAIL PROTECTED]> writes: andrew=# drop table blurflx; ERROR: table "blurflx" does not exi

Re: [PATCHES] pl/pgSQL doco patch

2005-11-16 Thread Andrew Dunstan
I am wondering we should make this warning more prominent - it would be easily missed buried on the Oracle porting section, and I have seen people caught by it lots of times. cheers andrew Philip Yarra wrote: Hi, I supplied a minor doco patch relating to porting pl/SQL to pl/pgSQL: http:/

Re: [PATCHES] drop if exists

2005-11-16 Thread Andrew Dunstan
Christopher Kings-Lynne said: > Will we get this functionality for ALL objects? > The patch does these: table, view, index, sequence, schema, type, domain, and conversion. The reason is that these are all dealt with using the same bit of the grammar, and the first 4 are pretty much completely done

Re: [PATCHES] drop if exists

2005-11-17 Thread Andrew Dunstan
Christopher Kings-Lynne wrote: I think anything else will have to be done individually, although the pattern can be copied. Perhaps we should take bids on what should/should not be covered. Everything should be covered, otherwise it's just annoying for users... Well, that's arguably mor

Re: [PATCHES] Numeric 508 datatype

2005-11-17 Thread Andrew Dunstan
Joshua D. Drake wrote: With Slony and Replicator I don't really see the need for in place upgrades. Maintaining a replica is hardly a cost-free exercise. However, I don't think we can promise never to change the ondisk representation of data, nor the page layout. Sometimes an inplace up

[PATCHES] drop if exists - first piece

2005-11-18 Thread Andrew Dunstan
I will apply the attached patch tomorrow, barring objection. This covers drop if exists for the following objects: table view index sequence schema type domain conversion I have a simple test script as show below, but I am not sure where to put it in the regression tests - add a new one may

Re: [PATCHES] drop if exists - first piece

2005-11-19 Thread Andrew Dunstan
Tom Lane wrote: New test seems reasonable. done. A few other minor comments: * The NOTICEs should probably not carry an ERRCODE; usually you just want a notice to go out with the default "not an error" SQLSTATE. done. * The "Assert(missing_ok)"s are a waste of code space --- if

Re: [PATCHES] Numeric 508 datatype

2005-11-20 Thread Andrew Dunstan
Bruce Momjian wrote: Let's go ahead and apply the patch. While this change isn't very significant, I bet there will be other changes in 8.2 where we will want to change the database for a significant benefit, like reducing the tuple header by 4 bytes by recompressing the four xid/cid fields

[PATCHES] drop database if exists

2005-11-21 Thread Andrew Dunstan
here's a patch for "drop database if exists". Barring objections I will apply it in a day or two. cheers andrew Index: doc/src/sgml/ref/drop_database.sgml === RCS file: /cvsroot/pgsql/doc/src/sgml/ref/drop_database.sgml,v retr

Re: [PATCHES] drop database if exists

2005-11-21 Thread Andrew Dunstan
Tom Lane wrote: Andrew Dunstan <[EMAIL PROTECTED]> writes: here's a patch for "drop database if exists". Barring objections I will apply it in a day or two. Please try to remember the src/backend/nodes/ files this time. (In general, when modifying a widely-k

Re: [PATCHES] [HACKERS] Should libedit be preferred to libreadline?

2005-11-21 Thread Andrew Dunstan
Nice analysis, but we can't hack configure like that. It has to be able to be fully generated from its sources. I think the other source file you would need to look at is config/programs.m4. (Not sure about quoting $ac_popdir - why only that one?) Also, I suspect we'd want to enable the libe

Re: [PATCHES] Reduce dependancies of postmaster (without --as-needed)

2005-11-28 Thread Andrew Dunstan
Martijn van Oosterhout wrote: Regarding the other, this is the kind of thing the buildfarm would be good for. Would it be possible to arrange for each buildfarm machine to execute the following after successful completion and capture the output? It only needs to be run once. cd $SOURCEDIR/src

Re: [PATCHES] [HACKERS] Should libedit be preferred to libreadline?

2005-12-02 Thread Andrew Dunstan
Tom Lane wrote: Bruce Momjian writes: I trimmed it down to: --with-prefer-libedit prefer libedit over readline OK, I can live with that. I think it's ugly. Can't we just say --prefer-libedit ? If must be a --with-foo flag, maybe --with-libedit-pre

Re: [PATCHES] Check for integer overflow in datetime functions

2005-12-02 Thread Andrew Dunstan
Magnus Hagander wrote: BTW, has anyone checked Command Prompt's Subversion repository? It's a mirror of our anonymous CVS (AFAICT). I'm using it for reading diffs lately, and it's much nicer to look at the whole patch as a single diff rather than going a single file at a time. http://pr

Re: [PATCHES] Comments about libintl and *printf

2005-12-06 Thread Andrew Dunstan
Bruce Momjian wrote: One question I have is why ecpglib didn't need to use our snprintf.c in the past. Didn't our macros spill in to ecpglib before? The problem really only happened on Windows, I believe, and we had disabled use of our macros there. cheers andrew --

Re: [PATCHES] TODO item -- Improve psql's handling of multi-line

2005-12-07 Thread Andrew Dunstan
Sergey E. Koposov wrote: I also wanted this feature for a long time. And I agree that it is rather simple to just remove the \n when writing to the readline history file, but I don't think that's what everybody wants. I think that people want to preserve the original formatting... So in tha

Re: [PATCHES] implement prepared queries in plperl

2005-12-08 Thread Andrew Dunstan
Dmitry, please supply documentation (i.e. a patch to the SGML) to accompany this patch, or at the very least a description of how it works, with the promise of proper documentation to follow. cheers andrew ---(end of broadcast)--- TIP 2: Don'

Re: [PATCHES] implement prepared queries in plperl

2005-12-08 Thread Andrew Dunstan
Dmitry Karasik wrote: Dmitry, please supply documentation (i.e. a patch to the SGML) to accompany this patch, or at the very least a description of how it works, with the promise of proper documentation to follow. I am willing to write a proper documentation, but I haven't found the

Re: [PATCHES] running script on server shutdown (TODO)

2005-12-10 Thread Andrew Dunstan
Tom Lane said: > > I'm not sure why this is in TODO; it's a stupid if not outright > dangerous idea. I agree, in this case ... BUT ... This is what bothers me about having such an informal TODO list. There is a danger that people will work in items only to have them shot down, which is a great w

Re: [PATCHES] farsi translation of postgresql FAQ updated

2005-12-12 Thread Andrew Dunstan
Bruce Momjian wrote: Mahmoud Taghizadeh wrote: I have updated the FAQ. both text version and html version are attached to this mail. please update the CVS Uh, the master for Farsi is in HTML, not in text format, which is what you supplied. See doc/src/FAQ/FAQ_farsi.html. The reas

Re: [PATCHES] PLpgSQL: list of scalars as row for assign stmt, fore and fors stms

2005-12-20 Thread Andrew Dunstan
Tom Lane said: > "Pavel Stehule" <[EMAIL PROTECTED]> writes: >> x, y := r; > > That strikes me as a really bad idea. It weakens both syntax and > semantic error checking, to accomplish how much? > Where does the idea come from anyway? Has it been discussed on -hackers? I don't recall seeing

[PATCHES] default resource limits

2005-12-23 Thread Andrew Dunstan
I wrote: Tom Lane wrote: Andrew Dunstan <[EMAIL PROTECTED]> writes: Nearly everyone seems to agree that the default for max_fsm_pages is woefully low, so I would like to have the default for this set unconditionally to 200,000 rather than 20,000. The cost would be just over

Re: [PATCHES] default resource limits

2005-12-23 Thread Andrew Dunstan
er patch attached this time Andrew Dunstan wrote: I wrote: Tom Lane wrote: Andrew Dunstan <[EMAIL PROTECTED]> writes: Nearly everyone seems to agree that the default for max_fsm_pages is woefully low, so I would like to have the default for this set unconditionally to 2

Re: [PATCHES] default resource limits

2005-12-23 Thread Andrew Dunstan
daveg wrote: On Fri, Dec 23, 2005 at 03:38:56PM -0500, Andrew Dunstan wrote: What numbers would you like? If what I suggested seems odd, how about targets of 400 connections, 4000 shared_buffers and 200,000 max_fsm_pages? Here's a patch that does what I had in mind. On my m

Re: [PATCHES] [BUGS] BUG #2114: (patch) COPY FROM ... end of copy

2005-12-27 Thread Andrew Dunstan
Bruce Momjian wrote: The big problem is that \. is also a valid CSV data value (though not a valid non-CSV data value). So, the solution we came up with was to require \. to appear alone on a line in CSV mode for it to be treated as end-of-copy. According to the docs, that's the way to s

Re: [PATCHES] TODO-item: Add sleep() function, remove from regress.c

2006-01-10 Thread Andrew Dunstan
Jim C. Nasby wrote: On Tue, Jan 10, 2006 at 11:31:13AM +0100, Joachim Wieland wrote: No, cancelling the sleep works (at least for Unix). Isn't cancelling implemented via a signal that interrupts select() ? Anyway, I've changed it, removing the ~2000s limit is a good point. + while (

Re: [PATCHES] TODO-item: Add sleep() function, remove from regress.c

2006-01-10 Thread Andrew Dunstan
Tom Lane said: > Andrew Dunstan <[EMAIL PROTECTED]> writes: >> Jim C. Nasby wrote: >>> Won't this result in a call to pg_sleep with a long sleep time ending >>> up sleeping noticeably longer than requested? > >> Looks like it to me. > > Somethin

Re: [PATCHES] [HACKERS] pgxs/windows

2006-01-19 Thread Andrew Dunstan
On Thu, 2006-01-19 at 15:33 -0500, Tom Lane wrote: > Bruce Momjian writes: > > The difference between Magnus's and Andrew's is > > that Magnus used MODULE_big (which means create a shared library), while > > Andrew used MODULES. So, Magnus's only worked because he was creating a > > DLL and that

[PATCHES] plperl / locale / win32

2006-01-20 Thread Andrew Dunstan
I was reminded today of the outstanding issue with plperl setting the locale on Windows, and our environment workaround not working there. There has been NO response to the bug I filed (#38193) at rt.perl.org about this issue. The attached patch adapts one I previously tested as working, bu

Re: [PATCHES] Allow an alias for the target table in UPDATE/DELETE

2006-01-22 Thread Andrew Dunstan
Martijn van Oosterhout wrote: Shift/reduce and reduce/reduce errors still produce valid working parsers, it's just that bison has to resolve an ambiguity by the default (shift, otherwise earliest rule wins. maximum munch rule really). If you don't like relying on file order to resolve this, a

Re: [PATCHES] Allow an alias for the target table in UPDATE/DELETE

2006-01-22 Thread Andrew Dunstan
Martijn van Oosterhout wrote: On Sun, Jan 22, 2006 at 09:04:14AM -0500, Andrew Dunstan wrote: If you don't like relying on file order to resolve this, appropriate use of %prec would have the same effect (just like for operator precedence). The output file tell you which way bison

Re: [PATCHES] Allow an alias for the target table in UPDATE/DELETE

2006-01-22 Thread Andrew Dunstan
Tom Lane wrote: The effect of this, as Andrew says, is that in this particular context you can't write SET as an alias unless you write AS first. This is probably not going to surprise anyone in the UPDATE case, since the ambiguity inherent in writing UPDATE foo set SET ... is pretty

Re: [PATCHES] plperl / locale / win32

2006-01-24 Thread Andrew Dunstan
I have now tested the patch. It passes regression and the test case Tom previously posted. Unless there's an objection I will apply it and backport it in the next few days. cheers andrew I wrote: I was reminded today of the outstanding issue with plperl setting the locale on Windows, an

Re: [PATCHES] Adding a --quiet option to initdb

2006-01-25 Thread Andrew Dunstan
On Wed, 2006-01-25 at 16:08 +0200, Devrim GUNDUZ wrote: > Hi, > > Attached is a patch which adds --quiet and --q option to initdb. I > personally needed this option while writing a document and taking > screenshot :) It only shows the error and warning messages, as well as > the last lines. > > I

Re: [PATCHES] plperl / locale / win32

2006-01-28 Thread Andrew Dunstan
applied to HEAD, 8.1 and 8.0. cheers andrew I wrote: I have now tested the patch. It passes regression and the test case Tom previously posted. Unless there's an objection I will apply it and backport it in the next few days. cheers andrew I wrote: I was reminded today of the outs

[PATCHES] drop user/group/role if exists

2006-01-29 Thread Andrew Dunstan
This patch provides DROP ... IF EXISTS for user/group/role. If there's no objection I will apply it soon and document it. cheers andrew Index: src/backend/commands/user.c === RCS file: /cvsroot/pgsql/src/backend/commands/user.c,v

Re: [PATCHES] [BUGS] BUG #2221: Bad delimiters allowed in COPY ...

2006-01-30 Thread Andrew Dunstan
David Fetter wrote: + /* Disallow BADCHARS characters */ + if (strcspn(cstate->delim, BADCHARS) != 1) + ereport(ERROR, + (errcode(ERRCODE_FEATURE_NOT_SUPPORTED), +errmsg("COPY delimiter cannot be \"%#02x\"", +

Re: [PATCHES] [BUGS] BUG #2221: Bad delimiters allowed in COPY ...

2006-01-31 Thread Andrew Dunstan
David Fetter said: > On Tue, Jan 31, 2006 at 08:03:41PM -0500, Bruce Momjian wrote: >> Uh, couldn't the delimiter be a backslash in CVS mode? > > I don't think so. Folks? Using backslash as a delimiter in CSV would be odd, to say the least. As an escape char it is occasionally used, but not as a

Re: [PATCHES] [BUGS] BUG #2221: Bad delimiters allowed in COPY ...

2006-02-01 Thread Andrew Dunstan
David Fetter wrote: Anyhow, Bruce's patch still allows backslash as a delimiter, which can cause *all* kinds of fun if not disallowed. Yes, I'm puzzled by that. I can't really see any case for allowing it. And if we do, it should only be allowed in CSV mode, where its use will be mere

Re: [PATCHES] pg_restore COPY error handling

2006-02-01 Thread Andrew Dunstan
On Wed, 2006-02-01 at 17:20 -0500, Stephen Frost wrote: > * Bruce Momjian (pgman@candle.pha.pa.us) wrote: > > Stephen Frost wrote: > > > Great! It'd be really nice to have this fix in 8.1.3... :) > > > > No, it will not be in 8.1.3. It is a new feature. > > I'd really appriciate it if you could

Re: [PATCHES] pg_restore COPY error handling

2006-02-01 Thread Andrew Dunstan
Tom Lane said: > > Also, it might be possible to depend on whether libpq has entered the > "copy in" state. I'm not sure this works very well, because if there's > an error in the COPY command itself (not in the following data) then we > probably don't ever get into "copy in" state. > Could we n

Re: [PATCHES] [BUGS] BUG #2171: Differences compiling plpgsql in

2006-02-02 Thread Andrew Dunstan
On Wed, 2006-02-01 at 23:48 -0500, Bruce Momjian wrote: > I have researched your report, and you are right, there are two ecpg > bugs here. First, dollar quoting uses single-quotes internally to do > the quoting, but it does not double any single-quotes in the > dollar-quoted string. > As a matt

Re: [PATCHES] [BUGS] BUG #2171: Differences compiling plpgsql in

2006-02-02 Thread Andrew Dunstan
On Thu, 2006-02-02 at 16:41 -0500, Tom Lane wrote: > Andrew Dunstan <[EMAIL PROTECTED]> writes: > > As a matter of curiosity, why does ecpg handle dollar quoting like that? > > psql, for example, happily just passes a dollar quoted string through to > > the backend, wit

Re: [PATCHES] drop user/group/role if exists

2006-02-04 Thread Andrew Dunstan
I wrote: This patch provides DROP ... IF EXISTS for user/group/role. If there's no objection I will apply it soon and document it. There wasn't so I did. cheers andrew ---(end of broadcast)--- TIP 2: Don't 'kill -9' the postmaster

[PATCHES] drop if exists remainder

2006-02-05 Thread Andrew Dunstan
Here's a first draft patch for DROP ... IF EXISTS for the remaining cases, namely: LANGUAGE, TABLESPACE, TRIGGER OPERATOR CLASS, FUNCTION, AGGREGATE, OPERATOR, CAST and RULE. comments welcome - working on tests/docs now. cheers andrew Index: src/backend/commands/aggregatecmds.c

Re: [PATCHES] drop if exists remainder

2006-02-05 Thread Andrew Dunstan
Tom Lane wrote: Andrew Dunstan <[EMAIL PROTECTED]> writes: Here's a first draft patch for DROP ... IF EXISTS for the remaining cases, namely: LANGUAGE, TABLESPACE, TRIGGER OPERATOR CLASS, FUNCTION, AGGREGATE, OPERATOR, CAST and RULE. At what point does this stop being

Re: [PATCHES] drop if exists remainder

2006-02-05 Thread Andrew Dunstan
Bruce Momjian wrote: However, I see CREATE ROLE doesn't have REPLACE functionality, so what is the logic of when we need IF EXISTS and when we don't? Perhaps they all should have it, and the REPLACE is just for objects you want to replace but keep existing linkage in place. That was my

Re: [PATCHES] implement prepared queries in plperl

2006-02-19 Thread Andrew Dunstan
Dmitry Karasik wrote: [patch snipped] I have cleaned this patch somewhat by removing some bitrot that occurred since it was submitted, and adjusting formatting to something more closely resembling postgresql style (please remember to follow our style in future). The attached works on HEAD

Re: [PATCHES] [HACKERS] windows / initdb oddness

2006-02-21 Thread Andrew Dunstan
Andrew Dunstan wrote: I wrote: I will add some trace writes when I get a chance. I was rather hoping something would jump out at you, but obviously it hasn't, so I'll have to dig into it the slow way. *sigh* Just eyeballing the code it looks to me like the problem is

[PATCHES] fix initdb -U

2006-02-23 Thread Andrew Dunstan
the attached patch makes initdb -U username work as advertised. Barring objection I will apply it to head and backpatch to 8.0 and 8.1 branches. I guess nobody uses this much, or we'd surely have had reports of breakage long before now. cheers andrew Index: src/bin/initdb/initdb.c ===

Re: [PATCHES] [PATCH] Prompt for password on Windows platforms

2006-02-28 Thread Andrew Dunstan
Magnus Hagander wrote: I was very surprised by this issue as well. I am just assuming that not many people have a c:\dev directory on their machines where they run postgreSQL from. That is the only way that you would be able to open the file '/dev/tty', if the cwd is c:. If I

Re: [PATCHES] cleanup error reporting

2006-03-01 Thread Andrew Dunstan
Neil Conway said: > On Tue, 2006-02-28 at 22:38 -0500, Tom Lane wrote: >> There are one or two "cannot"s that should be "could not"s in your hit >> list, per the style guidelines. >> >> While you're at it -- I noticed several of the tsearch2 messages refer >> to "lexem(s)". The word is "lexeme", t

Re: [PATCHES] implement prepared queries in plperl

2006-03-01 Thread Andrew Dunstan
I am waiting for an update from Dmitry. cheers andrew Bruce Momjian wrote: Is this patch going to be applied? --- Andrew Dunstan wrote: I have cleaned this patch somewhat by removing some bitrot that occurred

Re: [PATCHES] implement prepared queries in plperl

2006-03-02 Thread Andrew Dunstan
Dmitry Karasik wrote: Bruce Momjian wrote: Is this patch going to be applied? I am waiting for an update from Dmitry. cheers andrew I believe this is some kind of misunderstanding, sorry if from my part, but I don't think any further updates are necessary. OK, I'll take

Re: [PATCHES] drop if exists remainder

2006-03-03 Thread Andrew Dunstan
Bruce Momjian wrote: Christopher Kings-Lynne wrote: Here's a first draft patch for DROP ... IF EXISTS for the remaining cases, namely: LANGUAGE, TABLESPACE, TRIGGER OPERATOR CLASS, FUNCTION, AGGREGATE, OPERATOR, CAST and RULE. At what point does this stop being useful and beco

Re: [PATCHES] implement prepared queries in plperl

2006-03-05 Thread Andrew Dunstan
Andrew Dunstan wrote: Dmitry Karasik wrote: Bruce Momjian wrote: Is this patch going to be applied? I am waiting for an update from Dmitry. cheers andrew I believe this is some kind of misunderstanding, sorry if from my part, but I don't think any further update

Re: [PATCHES] LDAP auth

2006-03-05 Thread Andrew Dunstan
Magnus Hagander wrote: Awhile back, "Magnus Hagander" <[EMAIL PROTECTED]> wrote: This patch adds native LDAP auth, for those platforms that don't have PAM (such as Win32, but also unixen without PAM). On Unix, uses OpenLDAP. On win32, u

Re: [PATCHES] CREATE SYNONYM ...

2006-03-14 Thread Andrew Dunstan
Tom Lane wrote: =?ISO-8859-1?Q?Hans-J=FCrgen_Sch=F6nig?= <[EMAIL PROTECTED]> writes: Peter Eisentraut wrote: Does any SQL-like database system other than Oracle have this feature? the most popular are: db2, max db, informix, ms sql. in other words: all databases which are

Re: [PATCHES] CREATE SYNONYM ...

2006-03-14 Thread Andrew Dunstan
Tom Lane wrote: Andrew Dunstan <[EMAIL PROTECTED]> writes: Even if they don't all have precisely the same semantics, though, is there an objection in principle to providing synonyms? The point I was trying to bring out is that they aren't standard, which amounts to

Re: [PATCHES] -HEAD pg_dumpall broken against older backends

2006-03-29 Thread Andrew Dunstan
Peter Eisentraut wrote: Stefan Kaltenbrunner wrote: looks like somebody forgot to test some changes to the pg_dumpall code in Revision 1.70 against <8.1 installations - resulting in the following syntax error: Dump output is never expected to be backward compatible. We don't exp

Re: [PATCHES] -HEAD pg_dumpall broken against older backends

2006-03-29 Thread Andrew Dunstan
Stefan Kaltenbrunner wrote: Hi! looks like somebody forgot to test some changes to the pg_dumpall code in Revision 1.70 against <8.1 installations - resulting in the following syntax error: patch applied, thanks andrew ---(end of broadcast)---

Re: [PATCHES] .pgpass file and unix domain sockets

2006-05-16 Thread Andrew Dunstan
Tom Lane wrote: Joachim Wieland <[EMAIL PROTECTED]> writes: I send in the appended documentation patch to fix at least the documentation. This is wrong according to my tests. "localhost" *does* work, at least in some cases. As I understand it, the only case where it doesn't is w

Re: [PATCHES] .pgpass file and unix domain sockets

2006-05-16 Thread Andrew Dunstan
Tom Lane wrote: Andrew Dunstan <[EMAIL PROTECTED]> writes: Tom Lane wrote: This is wrong according to my tests. "localhost" *does* work, at least in some cases. As I understand it, the only case where it doesn't is where an explicit host connection

[PATCHES] plperl - make $_TD global

2006-05-22 Thread Andrew Dunstan
The attached tiny patch will fix the problem Greg Sabino Mullane had with a shared lexical $_TD, by making it a global and just pushing a local value in the trigger function. I don't think what we had is strictly a bug, so I don't thinbk we need top backpatch this. It will, however, requir

Re: [PATCHES] plperl - make $_TD global

2006-05-22 Thread Andrew Dunstan
Tom Lane wrote: Andrew Dunstan <[EMAIL PROTECTED]> writes: The attached tiny patch will fix the problem Greg Sabino Mullane had with a shared lexical $_TD, by making it a global and just pushing a local value in the trigger function. ... I don't think a docs change is needed.

Re: [PATCHES] Allow commenting of variables in postgresql.conf to

2006-05-24 Thread Andrew Dunstan
Zdenek Kotala wrote: There is path implements following item from todo list: "Allow commenting of variables in postgresql.conf to restore them to defaults". Main idea is: General config structure is extend with default_val attribute to keep really default value. (There is small conflict - for

Re: [PATCHES] plperl - put schema-name in $_TD

2006-05-24 Thread Andrew Dunstan
Adam Sjøgren wrote: Hi. Enclosed is a tiny patch for plperl that puts the schema-name of the current table in $_TD, so triggers can access tables using schemaname.tablename, for instance like so: my $query='INSERT INTO ' . $_TD->{nspname} . '.' . $_TD->{relname} . '_archive (' . $fieldname

Re: [PATCHES] plperl - put schema-name in $_TD

2006-05-25 Thread Andrew Dunstan
Tom Lane wrote: Andrew Dunstan <[EMAIL PROTECTED]> writes: Adam Sjøgren wrote: Enclosed is a tiny patch for plperl that puts the schema-name of the current table in $_TD, so triggers can access tables using schemaname.tablename, for instance like so: This seems like

Re: [PATCHES] plperl - put schema-name in $_TD

2006-05-25 Thread Andrew Dunstan
Adam Sjøgren said: > > > I haven't looked at the other languages as I do not use them; let me > know if I should take a stab at providing patches for them as well. > I will take it from here. Thanks. andrew ---(end of broadcast)--- TIP 3: Have y

Re: [PATCHES] [HACKERS] BEGIN inside transaction should be an error

2006-05-26 Thread Andrew Dunstan
Please read the developers FAQ: http://www.postgresql.org/docs/faqs.FAQ_DEV.html For the most part, patches are probably best generated relative to the root directory of your CVS checkout. cheers andrew Gurjeet Singh wrote: I have made the changes to implement this TODO item. I wish t

[PATCHES] tg_table_name and tg_table_schema for plpgsql

2006-05-27 Thread Andrew Dunstan
Here's a patch for tg_table_name and tg_table_schema for plpgsql, which I would appreciate a quick review of just to make sure I haven't missed something or done something silly. This will complete this exercise - I have already committed analogous changes for plperl, plpython and pltcl. che

Re: [PATCHES] tg_table_name and tg_table_schema for plpgsql

2006-05-27 Thread Andrew Dunstan
Tom Lane wrote: Andrew Dunstan <[EMAIL PROTECTED]> writes: Here's a patch for tg_table_name and tg_table_schema for plpgsql, which I would appreciate a quick review of just to make sure I haven't missed something or done something silly. Looks all right other than

Re: [PATCHES] [PATCH] Add support for GnuTLS

2006-05-30 Thread Andrew Dunstan
Tom Lane wrote: FWIW, Red Hat's legal department thinks that the FSF has "overreached" in claiming that the GPL is incompatible with OpenSSL's license. Which is why Red Hat isn't worrying about GPL apps that use OpenSSL, of which there are quite a few ... I'm quite happy if we hang onto Red

Re: [PATCHES] [PATCH] Round 2: Magic block for modules

2006-05-30 Thread Andrew Dunstan
Tom Lane wrote: Bruce Momjian writes: Patch applied. Thanks. I hadn't gotten around to reviewing the revised version. Is it just me or is this happening a lot lately? cheers andrew ---(end of broadcast)--- TIP 1: if posting/readin

Re: [PATCHES] [HACKERS] Win32 sysconfig -> pg_service.conf

2006-06-06 Thread Andrew Dunstan
Bruce Momjian said: > > On Win32, patch applied to return path if GetShortPathName() fails (no short name, path does not exist), rather than returning nothing. > What made you choose this rather than GetFullPathName? cheers andrew ---(end of broadcast)

Re: [PATCHES] [HACKERS] Win32 sysconfig -> pg_service.conf

2006-06-07 Thread Andrew Dunstan
Bruce Momjian wrote: Andrew Dunstan wrote: Bruce Momjian said: On Win32, patch applied to return path if GetShortPathName() fails (no short name, path does not exist), rather than returning nothing. What made you choose this rather than GetFullPathName? Sure, we

Re: [PATCHES] [HACKERS] Win32 sysconfig -> pg_service.conf

2006-06-07 Thread Andrew Dunstan
Bruce Momjian wrote: How is it different from the path we pass to it? Aren't all those paths full already? If they are then it probably doesn't matter. The reason I don't want to use GetFullPathName() is because on Unix, we just return the specified path, not the full path, so I d

Re: [PATCHES] ALTER TABLE ADD/DROP INHERITS

2006-06-07 Thread Andrew Dunstan
Greg Stark wrote: As described on -hackers this is my work so far adding ADD/DROP INHERITS. It implements the controversial "ALTER TABLE ADD/DROP INHERITS " syntax that requires making INHERITS a reserved keyword. I haven't seen a clear consensus yet on what the best syntax to use here would be.

Re: [HACKERS] [PATCHES] drop if exists remainder

2006-06-08 Thread Andrew Dunstan
Josh Berkus wrote: Tom, What's the consensus on this? Nobody else has chimed in, so I'm inclined to do no more on the gounds of insufficient demand. Let's decide before too much bitrot occurs, though. +1 :) +1 We were talking about this on IRC, and I feel that if we'

Re: [PATCHES] Patch for - Allow server logs to be remotely read

2006-06-08 Thread Andrew Dunstan
Bruce Momjian wrote: Tom Lane wrote: Bruce Momjian writes: Tom Lane wrote: I wonder if we should take pg_read_file (and the rest of genfile.c) back out of the backend and stick them into contrib/adminpack. I thought about that but what we have in the backend now is re

Re: [HACKERS] [PATCHES] drop if exists remainder

2006-06-08 Thread Andrew Dunstan
David Fetter wrote: On Thu, Jun 08, 2006 at 09:43:19AM -0400, Andrew Dunstan wrote: OK there does seem to be some demand for this, so I will rework the patch, and hope to get it done by feature freeze - it has bitrotted with 7 merge conflicts, including the grammar file, so I need to look

Re: [HACKERS] [PATCHES] drop if exists remainder

2006-06-08 Thread Andrew Dunstan
Jim C. Nasby wrote: Important as you are, "one swallow does not make a summer". On the other hand, unless we want the lists filling up with a bunch of +1 posts, it's probably better to assume that unless someone objects a patch would be accepted. What happened was that Tom objected

[PATCHES] drop if exists remnainder (reprise)

2006-06-10 Thread Andrew Dunstan
Here is an updated patch for the remaining cases of DROP objtype IF EXISTS ... as recently discussed on -hackers. The cases are: language, tablespace, trigger, rule, opclass, function, aggregate. operator, and cast. Regression tests and docs still to come. I wasn't quite sure how to form

Re: [PATCHES] COPY view

2006-06-14 Thread Andrew Dunstan
Bruce Momjian wrote: This patch implements the COPY VIEW TODO item. Do we want to apply it for 8.2? I thought the consensus was that it would be better to do COPY (SELECT ...) TO ... rather than requiring the intermediate creation of a view. cheers andrew -

Re: [PATCHES] COPY view

2006-06-14 Thread Andrew Dunstan
Bruce Momjian wrote: Andrew Dunstan wrote: Bruce Momjian wrote: This patch implements the COPY VIEW TODO item. Do we want to apply it for 8.2? I thought the consensus was that it would be better to do COPY (SELECT ...) TO ... rather than requiring the intermediate

Re: [PATCHES] COPY view

2006-06-14 Thread Andrew Dunstan
Hans-Juergen Schoenig wrote: we agreed on the view solution as people thought that this would be better and less intrusive. I was also in favour of the syntax your described below but people voted for the view solution which has been fully implemented by this patch. Btw, it seems to be stab

Re: [PATCHES] COPY view

2006-06-14 Thread Andrew Dunstan
Hans-Juergen Schoenig wrote: why do we agree on a patch, implement it and reject it then? would be easier to reject it before actually implementing it ... it is quite hard to explain to a customer that something is rejected after approval - even if things are written properly ... That

<    1   2   3   4   5   6   7   8   9   10   >