Re: [HACKERS] FDW-based dblink (WIP)

2009-08-19 Thread Heikki Linnakangas
Itagaki Takahiro wrote: > However, automatic transaction management needs help by core. Is it > acceptable to have two-phase callbacks? Probably, but it's far too early to decide what the interface should look like. -- Heikki Linnakangas EnterpriseDB http://www.enterprisedb.com -- Sent v

Re: [HACKERS] hot standby - merged up to CVS HEAD

2009-08-19 Thread Heikki Linnakangas
Robert Haas wrote: > On Mon, Aug 17, 2009 at 6:50 AM, Robert Haas wrote: >>> I think there's a race condition in the way LogCurrentRunningXacts() is >>> called at the end of checkpoint. This can happen in the master: >>> >>> 1. Checkpoint starts >>> 2. Transaction 123 begins, and does some updates

Re: [HACKERS] auto_explain log_verbose causes regression failure

2009-08-19 Thread Itagaki Takahiro
Robert Haas wrote: > It looks like this is enough to reproduce the cache lookup failure: The "cache loopup failure" part could be fixed by the attached patch. It forbids explaining if the transaction is in error state. I cannot reproduce "unexpected refassgnexpr" and "unexpected FieldStore" er

Re: [HACKERS] FDW-based dblink (WIP)

2009-08-19 Thread Itagaki Takahiro
Tom Lane wrote: > I don't believe there is any consensus for integrating dblink into core, > and I for one will resist that strongly. Keep it in contrib. OK, our consensus is that dblink should be replaced with SQL/MED interface and then we'll start to consider integrating into core. However,

Re: [HACKERS] auto_explain log_verbose causes regression failure

2009-08-19 Thread Robert Haas
On Wed, Aug 19, 2009 at 10:07 PM, Robert Haas wrote: > On Wed, Aug 19, 2009 at 9:39 PM, Andrew Dunstan wrote: >> Robert Haas wrote: >>> >>> On Wed, Aug 19, 2009 at 7:57 PM, Andrew >>> Dunstan wrot> >>> I am getting a repeatable failure  on the HEAD regression tests when auto_explain'

Re: [HACKERS] auto_explain log_verbose causes regression failure

2009-08-19 Thread Robert Haas
On Wed, Aug 19, 2009 at 9:39 PM, Andrew Dunstan wrote: > Robert Haas wrote: >> >> On Wed, Aug 19, 2009 at 7:57 PM, Andrew >> Dunstan wrot> >> >>> >>> I am getting a repeatable failure  on the HEAD regression tests when >>> auto_explain's log_verbose is set. If auto_explain.log_verbose is turned >>>

Re: [HACKERS] auto_explain log_verbose causes regression failure

2009-08-19 Thread Andrew Dunstan
Robert Haas wrote: On Wed, Aug 19, 2009 at 7:57 PM, Andrew Dunstan wrot> I am getting a repeatable failure on the HEAD regression tests when auto_explain's log_verbose is set. If auto_explain.log_verbose is turned off the failure disappears. Data below. cheers andrew config settings: cus

Re: [HACKERS] auto_explain log_verbose causes regression failure

2009-08-19 Thread Robert Haas
On Wed, Aug 19, 2009 at 7:57 PM, Andrew Dunstan wrot> > I am getting a repeatable failure  on the HEAD regression tests when > auto_explain's log_verbose is set. If auto_explain.log_verbose is turned off > the failure disappears. Data below. > > cheers > > andrew > > config settings: > > custom_var

Re: [HACKERS] [BUGS] fillfactor hides autovacuum parameters in 8.4.0

2009-08-19 Thread Itagaki Takahiro
Here is a patch to fix a bug in handling default values in reloptions. This fix should be applied to HEAD and 8.4.0. I used 'magic number -1' to propagate "not-specified" information to autovacuum process. It might look strange because the default value is out of range of the reloption, but I thi

[HACKERS] auto_explain log_verbose causes regression failure

2009-08-19 Thread Andrew Dunstan
I am getting a repeatable failure on the HEAD regression tests when auto_explain's log_verbose is set. If auto_explain.log_verbose is turned off the failure disappears. Data below. cheers andrew config settings: custom_variable_classes = 'auto_explain' auto_explain.log_min_duration = 0 au

Re: [HACKERS] Why ACL_EXECUTE is checked on FindConversion()?

2009-08-19 Thread KaiGai Kohei
Tom Lane wrote: > KaiGai Kohei writes: >> When FindConversion() is called, it also checks current user's ACL_EXECUTE >> privilege on the conproc of the fetched conversion. > >> Why this check is applied on FindConversion(), instead of >> FindDefaultConversion()? > > Does seem pretty inconsisten

Re: [HACKERS] We should Axe /contrib/start-scripts

2009-08-19 Thread Kevin Grittner
I wrote: > Oh, right -- it does let PostgreSQL automatically deal with the file > left by a different instance, but could still fail on it's own file. Er, it does let PostgreSQL automatically deal with a different instance using the PID matching what this instance left in its file, but could b

Re: [HACKERS] We should Axe /contrib/start-scripts

2009-08-19 Thread Kevin Grittner
Tom Lane wrote: > "Kevin Grittner" writes: > Well, using a different user per instance is a good idea because > then the safety analysis I gave holds rigorously for each instance. > It doesn't get you out of the problem by itself, because the problem > as described can happen with just one in

Re: [HACKERS] We should Axe /contrib/start-scripts

2009-08-19 Thread Tom Lane
Greg Stark writes: > On Wed, Aug 19, 2009 at 10:03 PM, Tom Lane wrote: >> What this all leads to is that it's safe to launch a postmaster from >> an init script via something like >>su - postgres sh -c "postmaster ..." > Surely you don't want "-"? If you run postgres's .profile etc. then

Re: [HACKERS] We should Axe /contrib/start-scripts

2009-08-19 Thread Tom Lane
"Kevin Grittner" writes: > Right -- we did run into this in spades when our backup server, > running dozens of instances of PostgreSQL in "warm standby" to confirm > the integrity of the files received, crashed hard. I wasn't sure if > this was the problem being addressed. One obvious solution,

Re: [HACKERS] We should Axe /contrib/start-scripts

2009-08-19 Thread Josh Berkus
Tom, > (Personally, I use scripts based on start-scripts/osx/ for a number of > services on my own machines, so if there's something wrong with them > I'd definitely like to know what it is.) I quote: "# What to use to start up the postmaster (we do NOT use pg_ctl for this, # as it adds no value

Re: [HACKERS] We should Axe /contrib/start-scripts

2009-08-19 Thread Greg Stark
On Wed, Aug 19, 2009 at 10:03 PM, Tom Lane wrote: > What this all leads to is that it's safe to launch a postmaster from > an init script via something like >        su - postgres sh -c "postmaster ..." Surely you don't want "-"? If you run postgres's .profile etc. then random user customization f

Re: [HACKERS] Geometric bewilderment

2009-08-19 Thread David Fetter
On Wed, Aug 19, 2009 at 07:29:43PM +1000, Paul Matthews wrote: > Suspect that attaching large amounts of code is a breach of > etiquette. Code attachments aren't, but HTML messages are, so in future, please send only text :) Cheers, David. -- David Fetter http://fetter.org/ Phone: +1 415 235 37

Re: [HACKERS] We should Axe /contrib/start-scripts

2009-08-19 Thread Kevin Grittner
Tom Lane wrote: > The problem is that after a system crash and reboot, an old > postmaster.pid file might be left behind. The postmaster can only > safely remove this lock file if it is *certain* that it doesn't > represent another live postmaster process. Otherwise it is honor- > bound to co

Re: [HACKERS] We should Axe /contrib/start-scripts

2009-08-19 Thread Tom Lane
"David E. Wheeler" writes: > Nice summary, Tom. Do the distro packagers know this, though? All the active ones I know of learned it the hard way, or were paying attention when someone else did. Still, it wouldn't be a bad thing for us to document it somewhere. regards, t

Re: [HACKERS] We should Axe /contrib/start-scripts

2009-08-19 Thread Bruce Momjian
Should we add a comment to the startup scripts linking this email? http://archives.postgresql.org/message-id/28922.1250715...@sss.pgh.pa.us --- Tom Lane wrote: > "Kevin Grittner" writes: > > Tom Lane wrote: > >>>

Re: [HACKERS] We should Axe /contrib/start-scripts

2009-08-19 Thread David E. Wheeler
On Aug 19, 2009, at 2:03 PM, Tom Lane wrote: These considerations don't apply to ordinary hand launching of the postmaster, for the primary reason that the chance of a false PID match is several orders of magnitude smaller when you're talking about a manual restart --- the likely postmaster P

Re: [HACKERS] We should Axe /contrib/start-scripts

2009-08-19 Thread Tom Lane
"Kevin Grittner" writes: > Tom Lane wrote: >>> we do NOT use pg_ctl for [postmaster start], as it adds no value >>> and can cause the postmaster to misrecognize a stale lock file >> And? That statement was and remains perfectly correct. > Is this mentioned in the documentation somewhere tha

Re: [HACKERS] We should Axe /contrib/start-scripts

2009-08-19 Thread Bruce Momjian
Josh Berkus wrote: > Tom, > > >> "# What to use to start up the postmaster (we do NOT use pg_ctl for this, > >> # as it adds no value and can cause the postmaster to misrecognize a stale > >> # lock file) > >> DAEMON="$prefix/bin/postmaster" > > > > And? That statement was and remains perfectly

Re: [HACKERS] We should Axe /contrib/start-scripts

2009-08-19 Thread Josh Berkus
Tom, >> "# What to use to start up the postmaster (we do NOT use pg_ctl for this, >> # as it adds no value and can cause the postmaster to misrecognize a stale >> # lock file) >> DAEMON="$prefix/bin/postmaster" > > And? That statement was and remains perfectly correct. We don't use > pg_ctl to

Re: [HACKERS] We should Axe /contrib/start-scripts

2009-08-19 Thread Kevin Grittner
Tom Lane wrote: > Josh Berkus writes: >> we do NOT use pg_ctl for [postmaster start], as it adds no value >> and can cause the postmaster to misrecognize a stale lock file > And? That statement was and remains perfectly correct. Is this mentioned in the documentation somewhere that I've m

Re: [HACKERS] [BUGS] BUG #4961: pg_standby.exe crashes with no args

2009-08-19 Thread Magnus Hagander
On Wed, Aug 19, 2009 at 11:45, Heikki Linnakangas wrote: > Magnus Hagander wrote: >> This would amount to fairly major surgery for pg_standby on Win32. Is >> that something we'd want to backpatch, or do we want to backpatch just >> the removal of the signal() calls which would amount to not support

Re: [HACKERS] We should Axe /contrib/start-scripts

2009-08-19 Thread Tom Lane
Alvaro Herrera writes: > Tom Lane wrote: >> (Personally, I use scripts based on start-scripts/osx/ for a number of >> services on my own machines, so if there's something wrong with them >> I'd definitely like to know what it is.) > What kind of "based on"? I mean, are there some changes of your

Re: [HACKERS] Idea about estimating selectivity for single-column expressions

2009-08-19 Thread Robert Haas
On Wed, Aug 19, 2009 at 3:00 PM, Josh Berkus wrote: > Tom, Greg, Robert, > > Here's my suggestion: > > 1. First, estimate the cost of the node with a very pessimistic (50%?) > selectivity for the calculation. There is no such thing as a pessimistic selectivity estimation. Right now a lot of thing

Re: [HACKERS] We should Axe /contrib/start-scripts

2009-08-19 Thread Tom Lane
Josh Berkus writes: > Tom, >> (Personally, I use scripts based on start-scripts/osx/ for a number of >> services on my own machines, so if there's something wrong with them >> I'd definitely like to know what it is.) > I quote: > "# What to use to start up the postmaster (we do NOT use pg_ctl fo

Re: [HACKERS] We should Axe /contrib/start-scripts

2009-08-19 Thread Alvaro Herrera
Tom Lane wrote: > (Personally, I use scripts based on start-scripts/osx/ for a number of > services on my own machines, so if there's something wrong with them > I'd definitely like to know what it is.) What kind of "based on"? I mean, are there some changes of yours that could be applied to the

Re: [HACKERS] Idea about estimating selectivity for single-column expressions

2009-08-19 Thread Josh Berkus
Tom, Greg, Robert, Here's my suggestion: 1. First, estimate the cost of the node with a very pessimistic (50%?) selectivity for the calculation. 2. If the cost hits a certain threshold, then run the calculation estimation on the histogram. That way, we avoid the subtransaction and other overhea

Re: [HACKERS] We should Axe /contrib/start-scripts

2009-08-19 Thread Alvaro Herrera
Josh Berkus wrote: > > ... for the simple reason that nobody is maintaining it. Wheeler just > pointed out to me today that the OSX startup script hasn't been updated > since 7.4 and contains misinformation and dangerous scripting. > > Other startup scripts there are equally dilapidated, and are

Re: [HACKERS] We should Axe /contrib/start-scripts

2009-08-19 Thread David E. Wheeler
On Aug 19, 2009, at 11:48 AM, Tom Lane wrote: (Personally, I use scripts based on start-scripts/osx/ for a number of services on my own machines, so if there's something wrong with them I'd definitely like to know what it is.) +1. Please don't remove the start scripts. I use them on every syst

Re: [HACKERS] Idea about estimating selectivity for single-column expressions

2009-08-19 Thread Tom Lane
Greg Stark writes: > On Wed, Aug 19, 2009 at 7:22 PM, Tom Lane wrote: >> It may be that a subtransaction will actually be acceptable overhead, >> as long as we don't go overboard and invoke this mechanism for "simple" >> WHERE clauses.  Hard to tell without coding it up and testing it though. > A

Re: [HACKERS] Idea about estimating selectivity for single-column expressions

2009-08-19 Thread Greg Stark
On Wed, Aug 19, 2009 at 7:22 PM, Tom Lane wrote: > > It may be that a subtransaction will actually be acceptable overhead, > as long as we don't go overboard and invoke this mechanism for "simple" > WHERE clauses.  Hard to tell without coding it up and testing it though. Are you looking for volunt

Re: [HACKERS] We should Axe /contrib/start-scripts

2009-08-19 Thread Tom Lane
Chander Ganesan writes: > Josh Berkus wrote: >> ... for the simple reason that nobody is maintaining it. Wheeler just >> pointed out to me today that the OSX startup script hasn't been updated >> since 7.4 and contains misinformation and dangerous scripting. >> >> Other startup scripts there are

Re: [HACKERS] We should Axe /contrib/start-scripts

2009-08-19 Thread Chander Ganesan
Josh Berkus wrote: ... for the simple reason that nobody is maintaining it. Wheeler just pointed out to me today that the OSX startup script hasn't been updated since 7.4 and contains misinformation and dangerous scripting. Other startup scripts there are equally dilapidated, and aren't used by

Re: [HACKERS] Why ACL_EXECUTE is checked on FindConversion()?

2009-08-19 Thread Tom Lane
KaiGai Kohei writes: > When FindConversion() is called, it also checks current user's ACL_EXECUTE > privilege on the conproc of the fetched conversion. > Why this check is applied on FindConversion(), instead of > FindDefaultConversion()? Does seem pretty inconsistent, doesn't it? The original

Re: [HACKERS] Idea about estimating selectivity for single-column expressions

2009-08-19 Thread Tom Lane
Greg Stark writes: > Another thought. In the above case it would actually be fine to catch > the error with PG_TRY() without a subtransaction. As long as no shared > database state has been modified when the error is thrown then the > subtransaction isn't needed to roll them back. I think catchin

[HACKERS] We should Axe /contrib/start-scripts

2009-08-19 Thread Josh Berkus
... for the simple reason that nobody is maintaining it. Wheeler just pointed out to me today that the OSX startup script hasn't been updated since 7.4 and contains misinformation and dangerous scripting. Other startup scripts there are equally dilapidated, and aren't used by the linux distros r

Re: [HACKERS] alpha1 bundled -- please verify

2009-08-19 Thread Stefan Kaltenbrunner
Tom Lane wrote: Peter Eisentraut writes: Alpha1 has been bundled and is available at http://developer.postgresql.org/~petere/alpha/ Please check that it is sane. It looks like all the derived grammar files have been built with bison 2.4.1, which is not what's on svr1 (unless that's been updat

Re: [HACKERS] alpha1 bundled -- please verify

2009-08-19 Thread Tom Lane
Peter Eisentraut writes: > Alpha1 has been bundled and is available at > http://developer.postgresql.org/~petere/alpha/ > Please check that it is sane. It looks like all the derived grammar files have been built with bison 2.4.1, which is not what's on svr1 (unless that's been updated recently).

Re: [HACKERS] XLogInsert

2009-08-19 Thread Tom Lane
Jeff Janes writes: > If I read the code correctly, the only thing that is irrevocable is > that it writes into > rdt->next, and if it saved an old copy of rdt first, then it could > revoke the changes just > by doing rdt_old->next=NULL. If that were done, then I think this > code could be > moved

Re: [HACKERS] alpha1 bundled -- please verify

2009-08-19 Thread Alvaro Herrera
Kevin Grittner wrote: > Peter Eisentraut wrote: > > > Alpha1 has been bundled and is available at > > > > http://developer.postgresql.org/~petere/alpha/ > > > > Please check that it is sane. > > I downloaded it and did a make and make check on a machine without all > the packages to build fr

[HACKERS] XLogInsert

2009-08-19 Thread Jeff Janes
In XLogInsert (src/backend/access/transam/xlog.c), the part that adds back-up blocks into the rdata chain is described: /* * Make additional rdata chain entries for the backup blocks, so that we * don't need to special-case them in the write loop. Note that we have

Re: [HACKERS] alpha1 bundled -- please verify

2009-08-19 Thread Kevin Grittner
Peter Eisentraut wrote: > Alpha1 has been bundled and is available at > > http://developer.postgresql.org/~petere/alpha/ > > Please check that it is sane. I downloaded it and did a make and make check on a machine without all the packages to build from a source checkout. All 121 tests passe

Re: [HACKERS] explain root element for auto-explain

2009-08-19 Thread Tom Lane
Andrew Dunstan writes: > Bruce Momjian wrote: >> Are we going to publish an XML DTD for EXPLAIN, or have we already? > Not a DTD, but I am working on an XML Schema (DTDs are a bit yesterday). +1 ... I asked for a spec for the output format before, and this would do fine.

Re: [HACKERS] Determining client_encoding from client locale

2009-08-19 Thread Jaime Casanova
On Tue, Aug 18, 2009 at 6:49 AM, Heikki Linnakangas wrote: > > Hmm, are you sure you the right version of libpq is being loaded at > runtime? What does "ldd ./test-libpq" say? > i have to rebuild with the patch on linux and windows and i'm not sure i will have time until friday... once said that,

Re: [HACKERS] explain root element for auto-explain

2009-08-19 Thread Bruce Momjian
Andrew Dunstan wrote: > Bruce Momjian wrote: > > Are we going to publish an XML DTD for EXPLAIN, or have we already? > > Not a DTD, but I am working on an XML Schema (DTDs are a bit yesterday). OK, either one would be good. -- Bruce Momjian http://momjian.us EnterpriseDB

Re: [HACKERS] explain root element for auto-explain

2009-08-19 Thread Andrew Dunstan
Bruce Momjian wrote: Are we going to publish an XML DTD for EXPLAIN, or have we already? Not a DTD, but I am working on an XML Schema (DTDs are a bit yesterday). cheers andrew -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://

Re: [HACKERS] explain root element for auto-explain

2009-08-19 Thread Bruce Momjian
Are we going to publish an XML DTD for EXPLAIN, or have we already? --- Andrew Dunstan wrote: > > The attached tiny patch sets the root element for auto-explain > XML output, so it looks something like this: > > http

Re: [HACKERS] REGRESS_OPTS versus MSVC build scripts

2009-08-19 Thread Jeff Janes
> -- Forwarded message -- > From: David Fetter > To: Andrew Dunstan > Date: Tue, 18 Aug 2009 11:31:41 -0700 > Subject: Re: REGRESS_OPTS versus MSVC build scripts > On Tue, Aug 18, 2009 at 02:15:48PM -0400, Andrew Dunstan wrote: >> >> >> Andrew Dunstan wrote: >>> >> >> Here's an un

Re: [HACKERS] FDW-based dblink (WIP)

2009-08-19 Thread Joe Conway
Tom Lane wrote: > Pavel Stehule writes: >> 2009/8/19 Tom Lane : >>> I don't believe there is any consensus for integrating dblink into core, >>> and I for one will resist that strongly. Â Keep it in contrib. > >> if integration means, so I could to write query like >> SELECT * FROM otherdatabase.

Re: [HACKERS] FDW-based dblink (WIP)

2009-08-19 Thread Pavel Stehule
2009/8/19 Tom Lane : > Pavel Stehule writes: >> 2009/8/19 Tom Lane : >>> I don't believe there is any consensus for integrating dblink into core, >>> and I for one will resist that strongly.  Keep it in contrib. > >> if integration means, so I could to write query like >> SELECT * FROM otherdataba

Re: [HACKERS] FDW-based dblink (WIP)

2009-08-19 Thread Heikki Linnakangas
Itagaki Takahiro wrote: > It integrates dblink module into core and adds a new functionality, > automatic transaction management. Why does it need to be integrated to core? I'd prefer to keep dblink out of core, unless there's a reason. > I want pretty much the automatic transaction management. I

Re: [HACKERS] FDW-based dblink (WIP)

2009-08-19 Thread Tom Lane
Pavel Stehule writes: > 2009/8/19 Tom Lane : >> I don't believe there is any consensus for integrating dblink into core, >> and I for one will resist that strongly.  Keep it in contrib. > if integration means, so I could to write query like > SELECT * FROM otherdatabase.schema.table > UPDAT

Re: [HACKERS] FDW-based dblink (WIP)

2009-08-19 Thread Pavel Stehule
2009/8/19 Tom Lane : > Itagaki Takahiro writes: >> Here is a WIP patch for a foreign data wrapper based dblink. >> It integrates dblink module into core and adds a new functionality, >> automatic transaction management. > > I don't believe there is any consensus for integrating dblink into core, >

Re: [HACKERS] FDW-based dblink (WIP)

2009-08-19 Thread Tom Lane
Itagaki Takahiro writes: > Here is a WIP patch for a foreign data wrapper based dblink. > It integrates dblink module into core and adds a new functionality, > automatic transaction management. I don't believe there is any consensus for integrating dblink into core, and I for one will resist that

Re: [HACKERS] Idea about estimating selectivity for single-column expressions

2009-08-19 Thread Tom Lane
Greg Stark writes: > We could add another flag in pg_proc for functions which cannot throw > an error. Perhaps all index operator class operators be required to > use such functions too? It would be an extremely small set. For starters, anything that returns a pass-by-reference data type would b

Re: [HACKERS] Idea about estimating selectivity for single-column expressions

2009-08-19 Thread Greg Stark
On Wed, Aug 19, 2009 at 3:16 PM, Greg Stark wrote: > On Wed, Aug 19, 2009 at 3:53 AM, Tom Lane wrote: >> * The expression might throw an error for some inputs, for instance >>        (1 / field) < 0.5 >> which would fail on zero.  We could recover by wrapping the whole >> estimation process in a su

Re: [HACKERS] Idea about estimating selectivity for single-column expressions

2009-08-19 Thread Greg Stark
On Wed, Aug 19, 2009 at 3:53 AM, Tom Lane wrote: > * The expression might throw an error for some inputs, for instance >        (1 / field) < 0.5 > which would fail on zero.  We could recover by wrapping the whole > estimation process in a subtransaction, but that seems really expensive. > I though

Re: [HACKERS] pg_hba.conf: samehost and samenet

2009-08-19 Thread Stef Walter
Magnus Hagander wrote: > On Wed, Aug 19, 2009 at 03:58, Stef Walter wrote: >> Attached is a new patch, which I hope addresses all the concerns raised. > > I think you forgot to actually attach the patch Whoops. Here it is. Stef diff --git a/configure.in b/configure.in index 505644a..bc37b1b

Re: [HACKERS] pg_hba.conf: samehost and samenet

2009-08-19 Thread Magnus Hagander
On Wed, Aug 19, 2009 at 03:58, Stef Walter wrote: > Attached is a new patch, which I hope addresses all the concerns raised. I think you forgot to actually attach the patch (others have taken care of the question about login already I see) -- Magnus Hagander Me: http://www.hagander.net/

[HACKERS] alpha1 bundled -- please verify

2009-08-19 Thread Peter Eisentraut
Alpha1 has been bundled and is available at http://developer.postgresql.org/~petere/alpha/ Please check that it is sane. Then, someone please move this to an appropriate place on the FTP server and make an announcement. See http://wiki.postgresql.org/wiki/Alpha_release_process for process detai

Re: [HACKERS] [BUGS] BUG #4961: pg_standby.exe crashes with no args

2009-08-19 Thread Heikki Linnakangas
Magnus Hagander wrote: > This would amount to fairly major surgery for pg_standby on Win32. Is > that something we'd want to backpatch, or do we want to backpatch just > the removal of the signal() calls which would amount to not supporting > signals in pg_standby on win32? I think we should just

Re: [HACKERS] [BUGS] BUG #4961: pg_standby.exe crashes with no args

2009-08-19 Thread Magnus Hagander
On Wed, Aug 19, 2009 at 08:38, Fujii Masao wrote: > On Thu, Aug 13, 2009 at 2:24 AM, Magnus Hagander wrote: >> Not sure. Potentially pure luck. SIGINT has never *worked*, though, it >> just hasn't crashed. > > OK. > >> We could implement the same type of check in pg_standby, but it >> requires some

[HACKERS] Geometric bewilderment

2009-08-19 Thread Paul Matthews
Suspect that attaching large amounts of code is a breach of etiquette. So apologies in advance. Needed to write a contains(polygon,point) function that gave a level of accuracy greater than the current 'poly@>point' operator. The new function works just fine. While at it, thought it would be n

[HACKERS] Why ACL_EXECUTE is checked on FindConversion()?

2009-08-19 Thread KaiGai Kohei
When FindConversion() is called, it also checks current user's ACL_EXECUTE privilege on the conproc of the fetched conversion. Why this check is applied on FindConversion(), instead of FindDefaultConversion()? The FindConversion() returns the OID of conversion for the given name and namespace, o

Re: [HACKERS] PQgetlength vs. octet_length()

2009-08-19 Thread Albe Laurenz
Greg Stark wrote: > If you use binary encoding then you don't have to deal with that. > Though I seem to recall there is still a gotcha you have to worry > about if there are nul bytes in your datum. I don't recall exactly > what that meant you had to do though. As far as I know, it only means tha