Re: [HACKERS] Updates of SE-PostgreSQL 8.4devel patches (r1704)

2009-03-09 Thread KaiGai Kohei
Heikki Linnakangas wrote: + void + sepgsqlCheckProcedureInstall(Relation rel, HeapTuple newtup, HeapTuple oldtup) + { [snip] + + case AccessMethodRelationId: + CHECK_PROC_INSTALL_PERM(pg_am, aminsert, newtup, oldtup); + CHECK_PROC_INSTALL_PERM(pg_am, ambeginscan, newtup,

Re: [HACKERS] Updates of SE-PostgreSQL 8.4devel patches (r1704)

2009-03-09 Thread KaiGai Kohei
Tom Lane wrote: > Despite all that arm-waving, no one besides KaiGai-san has really > stepped up to work on it. That leaves me not only with worries about > the patch itself, but with an extremely low estimate of the community's > interest in it. And it is too big, complicated, and risky to go in

Re: [HACKERS] Updates of SE-PostgreSQL 8.4devel patches (r1704)

2009-03-09 Thread Tom Lane
Josh Berkus writes: >> Frankly, what we have here is a large patch, with insanely difficult >> correctness requirements, written by a Postgres newbie. If it doesn't >> scare you, you haven't been paying attention. We have a long track >> record of problems with patches written by people who thou

Re: [HACKERS] Updates of SE-PostgreSQL 8.4devel patches (r1704)

2009-03-09 Thread Josh Berkus
Tom, Frankly, what we have here is a large patch, with insanely difficult correctness requirements, written by a Postgres newbie. If it doesn't scare you, you haven't been paying attention. We have a long track record of problems with patches written by people who thought they were ready to do

Re: [HACKERS] Updates of SE-PostgreSQL 8.4devel patches (r1704)

2009-03-09 Thread KaiGai Kohei
Jaime Casanova wrote: On Mon, Mar 9, 2009 at 1:52 AM, KaiGai Kohei wrote: As I promised last week, SE-PostgreSQL patches are revised here: [1/5] http://sepgsql.googlecode.com/files/sepgsql-core-8.4devel-r1704.patch [2/5] http://sepgsql.googlecode.com/files/sepgsql-utils-8.4devel-r1704.patch [3

Re: [HACKERS] Updates of SE-PostgreSQL 8.4devel patches (r1704)

2009-03-09 Thread Jaime Casanova
On Mon, Mar 9, 2009 at 1:52 AM, KaiGai Kohei wrote: > As I promised last week, SE-PostgreSQL patches are revised here: > > [1/5] http://sepgsql.googlecode.com/files/sepgsql-core-8.4devel-r1704.patch > [2/5] http://sepgsql.googlecode.com/files/sepgsql-utils-8.4devel-r1704.patch > [3/5] http://sepgs

Re: [HACKERS] parallel restore fixes

2009-03-09 Thread Tom Lane
Andrew Dunstan writes: > Tom Lane wrote: >> How early is early? The proposed call sites for init_dump_utils seem >> already long past the point where any libc-level infrastructure would >> think it is "initialization" time. > Well, I think at least it needs to be done where other threads won't

Re: [HACKERS] Sampling Profler for Postgres

2009-03-09 Thread Tom Lane
ITAGAKI Takahiro writes: > For resource-based profilers, we have DTrace probes[1] and continue to > extend them[2], but unfortunately DTrace only works on Solaris and limited > platforms. FWIW, the systemtap guys are really, really close to having a working DTrace equivalent for Linux: http://gnu

Re: [HACKERS] Sampling Profler for Postgres

2009-03-09 Thread Dickson S. Guedes
Em Ter, 2009-03-10 às 10:23 +0900, ITAGAKI Takahiro escreveu: > Thanks for testing. Network (or communication between pgbench and postgres) > seems to be a bottleneck on your machine. Yes, it is a very poor machine for quicktest. I'll test other environments tomorrow. > > Two questions here: > >

Re: [HACKERS] parallel restore fixes

2009-03-09 Thread Andrew Dunstan
Tom Lane wrote: Andrew Dunstan writes: Tom Lane wrote: Actually, why bother with init_dump_utils at all? Well, the Windows reference I have suggests TlsAlloc() needs to be called early in the initialisation process ... How early is early? The proposed call sites

Re: [HACKERS] Updates of SE-PostgreSQL 8.4devel patches (r1704)

2009-03-09 Thread KaiGai Kohei
> Perhaps it would help you calibrate the problem if I stated that > I wouldn't trust a patch for this purpose written by myself, let > alone somebody who hasn't been hacking the backend for ten years. > (Where "this purpose" means the type of control KaiGai-san seems > to hope to enforce, as oppos

Re: [HACKERS] Sampling Profler for Postgres

2009-03-09 Thread ITAGAKI Takahiro
"Dickson S. Guedes" wrote: > Compiled and Works fine here on Ubuntu 8.04 2.6.25.15-bd-mod #1 SMP > PREEMPT Thu Nov 27 10:05:44 BRST 2008 i686 GNU/Linux Thanks for testing. Network (or communication between pgbench and postgres) seems to be a bottleneck on your machine. > Two questions here: >

Re: [HACKERS] parallel restore fixes

2009-03-09 Thread Tom Lane
Andrew Dunstan writes: > Tom Lane wrote: >> Actually, why bother with init_dump_utils at all? > Well, the Windows reference I have suggests TlsAlloc() needs to be > called early in the initialisation process ... How early is early? The proposed call sites for init_dump_utils seem already long

[HACKERS] Pg_lesslog 1.2 released

2009-03-09 Thread Koichi Suzuki
Pg_lesslog, a PgFoundry project to reduce a size of archive log, has released new pg_lesslog 1.2. This fixes a bug of incorrect handling of XLOG_BTREE_SPLIT_R WAL record. Project home is here: http://pglesslog.projects.postgresql.org/ Download page is here: http://pgfoundry.org/frs/?group_id=10

Re: [HACKERS] Updates of SE-PostgreSQL 8.4devel patches (r1704)

2009-03-09 Thread KaiGai Kohei
Joshua D. Drake wrote: > On Mon, 2009-03-09 at 19:45 -0400, Tom Lane wrote: >> Hannu Krosing writes: >>> Can't it be kept separately maintained release for a version or two, so >>> that we will have both PostgreSQL and SE-PostgreSQL and thus have an >>> easy way to compare both correctness and per

Re: [HACKERS] Updates of SE-PostgreSQL 8.4devel patches (r1704)

2009-03-09 Thread Tom Lane
"Joshua D. Drake" writes: > I know we are a little uncomfortable here but KaiGai-San (forgive me if > I type that wrong) has proven to be a contributor in his own right, Not to put too fine a point on it, but: no, he hasn't. Show me one significant patch he's contributed before/beside this one.

Re: [HACKERS] Updates of SE-PostgreSQL 8.4devel patches (r1704)

2009-03-09 Thread Joshua D. Drake
On Mon, 2009-03-09 at 20:31 -0400, Bruce Momjian wrote: > Joshua D. Drake wrote: > > http://www.nsa.gov/applications/search/index.cfm?q=se-postgresql > > > > It is also part of the Secure OS project out of Japan (as far as I can > > tell). > > > > I know we are a little uncomfortable here but Kai

Re: [HACKERS] Updates of SE-PostgreSQL 8.4devel patches (r1704)

2009-03-09 Thread KaiGai Kohei
Hannu Krosing wrote: > Can't it be kept separately maintained release for a version or two, so > that we will have both PostgreSQL and SE-PostgreSQL and thus have an > easy way to compare both correctness and performance ? > > Anyone remember how did Linux implement/introduce SE Linux ? SELinux h

Re: [HACKERS] parallel restore fixes

2009-03-09 Thread Andrew Dunstan
Tom Lane wrote: It makes me a bit nervous because there are some other programs that are linking dumputils.c (psql and some in src/bin/scripts/) and even calling fmtId. Actually, why bother with init_dump_utils at all? fmtId could be made to initialize the ID variable for itself on firs

Re: [HACKERS] Updates of SE-PostgreSQL 8.4devel patches (r1704)

2009-03-09 Thread Bruce Momjian
Joshua D. Drake wrote: > http://www.nsa.gov/applications/search/index.cfm?q=se-postgresql > > It is also part of the Secure OS project out of Japan (as far as I can > tell). > > I know we are a little uncomfortable here but KaiGai-San (forgive me if > I type that wrong) has proven to be a contrib

Re: [HACKERS] Updates of SE-PostgreSQL 8.4devel patches (r1704)

2009-03-09 Thread Joshua D. Drake
On Mon, 2009-03-09 at 20:05 -0400, Tom Lane wrote: > "Joshua D. Drake" writes: > > Is there any possibility of having it be enabled at compile time? > > That's been assumed right along (unless you think it's okay for Postgres > to stop working on every non-SELinux platform). Good point. > The

Re: [HACKERS] DTrace doc patch for new probes in 8.4

2009-03-09 Thread Bruce Momjian
Patch applied. Thanks. --- Robert Lor wrote: > Attached is the doc patch for the recently added probes. > > -Robert > > Index: doc/src/sgml/monitoring.sgml > =

Re: [HACKERS] Updates of SE-PostgreSQL 8.4devel patches (r1704)

2009-03-09 Thread Tom Lane
"Joshua D. Drake" writes: > Is there any possibility of having it be enabled at compile time? That's been assumed right along (unless you think it's okay for Postgres to stop working on every non-SELinux platform). The problem here is mostly about whether we have enough confidence in the code to

Re: [HACKERS] Updates of SE-PostgreSQL 8.4devel patches (r1704)

2009-03-09 Thread Joshua D. Drake
On Mon, 2009-03-09 at 19:45 -0400, Tom Lane wrote: > Hannu Krosing writes: > > Can't it be kept separately maintained release for a version or two, so > > that we will have both PostgreSQL and SE-PostgreSQL and thus have an > > easy way to compare both correctness and performance ? > > Actually,

Re: [HACKERS] parallel restore fixes

2009-03-09 Thread Tom Lane
Alvaro Herrera writes: > Hmm, if pg_restore is the only program that's threaded, why are you > calling init_dump_utils on pg_dump and pg_dumpall? ... because fmtId will crash on *any* use without that. > It makes me a bit > nervous because there are some other programs that are linking > dumputi

Re: [HACKERS] Updates of SE-PostgreSQL 8.4devel patches (r1704)

2009-03-09 Thread Tom Lane
Hannu Krosing writes: > Can't it be kept separately maintained release for a version or two, so > that we will have both PostgreSQL and SE-PostgreSQL and thus have an > easy way to compare both correctness and performance ? Actually, KaiGai-san has been distributing a patched SEPostgres on Fedora

Re: [HACKERS] parallel restore fixes

2009-03-09 Thread Tom Lane
Andrew Dunstan writes: > + void > + init_dump_utils() This should be > + void > + init_dump_utils(void) please. We don't do K&R C around here. I'd lose the added retval variable too; that's not contributing anything. > ! #endif; Semicolon is bogus here. Looks pretty sane otherwise.

Re: [HACKERS] parallel restore fixes

2009-03-09 Thread Alvaro Herrera
Andrew Dunstan wrote: > > The attached patch fixes two issues with parallel restore: > >* the static buffer problem in dumputils.c::fmtId() on Windows > (solution: use thread-local storage) >* ReopenPtr() is called too often Hmm, if pg_restore is the only program that's threaded, why

Re: [HACKERS] Updates of SE-PostgreSQL 8.4devel patches (r1704)

2009-03-09 Thread Hannu Krosing
On Mon, 2009-03-09 at 16:39 -0400, Tom Lane wrote: > Robert Haas writes: > > On Mon, Mar 9, 2009 at 4:04 PM, Tom Lane wrote: > >> Now it's not really KaiGai-san's fault; > >> the fundamental problem IMHO is that no one else is taking very much > >> interest in the patch. But that in itself speaks

[HACKERS] parallel restore fixes

2009-03-09 Thread Andrew Dunstan
The attached patch fixes two issues with parallel restore: * the static buffer problem in dumputils.c::fmtId() on Windows (solution: use thread-local storage) * ReopenPtr() is called too often There is one remaining bug I know of that I can reproduce: we can get into deadlock when

Re: [HACKERS] Updates of SE-PostgreSQL 8.4devel patches (r1704)

2009-03-09 Thread Tom Lane
Robert Haas writes: > On Mon, Mar 9, 2009 at 4:04 PM, Tom Lane wrote: >> Now it's not really KaiGai-san's fault; >> the fundamental problem IMHO is that no one else is taking very much >> interest in the patch.  But that in itself speaks volumes about whether >> we actually want this patch or sho

Re: [HACKERS] One less footgun: deprecating pg_dump -d

2009-03-09 Thread Joshua D. Drake
On Mon, 2009-03-09 at 15:48 -0400, Tom Lane wrote: > "Kevin Grittner" writes: > > Magnus Hagander wrote: > >> but maybe it's better to use -i and -I, and thus change them both? > > > That's already used: > > > -i, --ignore-version proceed even when server version mismatches > >

Re: [HACKERS] Updates of SE-PostgreSQL 8.4devel patches (r1704)

2009-03-09 Thread Robert Haas
On Mon, Mar 9, 2009 at 4:04 PM, Tom Lane wrote: > Robert Haas writes: >> On Mon, Mar 9, 2009 at 1:25 PM, Tom Lane wrote: >>> I've been convinced for awhile that the sepostgres project is going >>> off the rails, and these last couple of exchanges just confirm the fear. > >> I'm not sure what you

Re: [HACKERS] Updates of SE-PostgreSQL 8.4devel patches (r1704)

2009-03-09 Thread Tom Lane
Robert Haas writes: > On Mon, Mar 9, 2009 at 1:25 PM, Tom Lane wrote: >> I've been convinced for awhile that the sepostgres project is going >> off the rails, and these last couple of exchanges just confirm the fear. > I'm not sure what you mean by "going off the rails". I think we are > still

Re: [HACKERS] One less footgun: removing pg_dump -d

2009-03-09 Thread Magnus Hagander
Greg Sabino Mullane wrote: >>> -i, --ignore-version proceed even when server version mismatches >>>pg_dump version >> Proposal: drop the short forms of these two switches entirely. >> Anybody who actually needs the capability can write "--inserts". > > I thought a

Re: [HACKERS] One less footgun: removing pg_dump -d

2009-03-09 Thread Greg Sabino Mullane
>> -i, --ignore-version proceed even when server version mismatches >>pg_dump version > > Proposal: drop the short forms of these two switches entirely. > Anybody who actually needs the capability can write "--inserts". I thought about something like that, but th

Re: [HACKERS] One less footgun: deprecating pg_dump -d

2009-03-09 Thread Magnus Hagander
Andrew Dunstan wrote: > > > Tom Lane wrote: >> "Kevin Grittner" writes: >> >>> Magnus Hagander wrote: but maybe it's better to use -i and -I, and thus change them both? >> >> >>> That's already used: >>> >> >> >>> -i, --ignore-version proceed even when

Re: [HACKERS] One less footgun: deprecating pg_dump -d

2009-03-09 Thread Andrew Dunstan
Tom Lane wrote: "Kevin Grittner" writes: Magnus Hagander wrote: but maybe it's better to use -i and -I, and thus change them both? That's already used: -i, --ignore-version proceed even when server version mismatches pg_dump v

Re: [HACKERS] One less footgun: deprecating pg_dump -d

2009-03-09 Thread Tom Lane
"Kevin Grittner" writes: > Magnus Hagander wrote: >> but maybe it's better to use -i and -I, and thus change them both? > That's already used: > -i, --ignore-version proceed even when server version mismatches >pg_dump version Proposal: drop the short forms

Re: [HACKERS] One less footgun: deprecating pg_dump -d

2009-03-09 Thread Kevin Grittner
>>> Magnus Hagander wrote: > Kevin Grittner wrote: >> Are you proposing to leave -D as is? > > I was :-) > > but maybe it's better to use -i and -I, and thus change them both? That's already used: -i, --ignore-version proceed even when server version mismatches

Re: [HACKERS] One less footgun: deprecating pg_dump -d

2009-03-09 Thread Magnus Hagander
Kevin Grittner wrote: Magnus Hagander wrote: >> +1 with breaking it, but with a better message (and let's call it >> breaking, not deprecating). > > Are you proposing to leave -D as is? I was :-) but maybe it's better to use -i and -I, and thus change them both? //Magnus -- Sent via p

Re: [HACKERS] One less footgun: deprecating pg_dump -d

2009-03-09 Thread Kevin Grittner
>>> Magnus Hagander wrote: > +1 with breaking it, but with a better message (and let's call it > breaking, not deprecating). Are you proposing to leave -D as is? -Kevin -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.pos

Re: [HACKERS] One less footgun: deprecating pg_dump -d

2009-03-09 Thread Ron Mayer
Selena Deckelmann wrote: > Tom Lane wrote: >> Greg Sabino Mullane writes: >>> ... >>> deprecate -d by having it throw an exception when used. >> >> "Deprecate" does not mean "break". > ... > While this change may break existing scripts...less painful Why do people want a failure rather than warni

Re: [HACKERS] One less footgun: deprecating pg_dump -d

2009-03-09 Thread Magnus Hagander
Tom Lane wrote: > "Joshua D. Drake" writes: >> Sorry Tom. Greg is correct here although I disagree with his wording. It >> should be removed and if someone passes -d it should throw an ERROR that >> says something like: >> ERROR: -d has been replaced by -I > > Well, if you want to break it, we ca

Re: [HACKERS] One less footgun: deprecating pg_dump -d

2009-03-09 Thread Selena Deckelmann
Tom Lane wrote: Greg Sabino Mullane writes: The solution I came up with is to use a new letter, -I, and to deprecate -d by having it throw an exception when used. "Deprecate" does not mean "break". This '-d' thing is more than just a matter of reading the documentation. Our other command l

Re: [HACKERS] Updates of SE-PostgreSQL 8.4devel patches (r1704)

2009-03-09 Thread Robert Haas
On Mon, Mar 9, 2009 at 1:25 PM, Tom Lane wrote: > KaiGai Kohei writes: >> Yes, the purpose of sepgsqlCheckProcedureInstall() is to prevent users >> to invoke functions installed by other malicious/untrusted one, typically >> known as trojan-horse. >> ... >> We should not assume only C-functions c

Re: [HACKERS] Prepping to break every past release...

2009-03-09 Thread Bruce Momjian
If this is the worst inconsistency you can find in our system tables after +20 years of development, I feel pretty good. --- Joshua D. Drake wrote: > Hello, > > Something that continues to grind my teeth about our software

Re: [HACKERS] One less footgun: deprecating pg_dump -d

2009-03-09 Thread Tom Lane
"Joshua D. Drake" writes: > Sorry Tom. Greg is correct here although I disagree with his wording. It > should be removed and if someone passes -d it should throw an ERROR that > says something like: > ERROR: -d has been replaced by -I Well, if you want to break it, we can debate about the wisdom

Re: [HACKERS] One less footgun: deprecating pg_dump -d

2009-03-09 Thread Joshua D. Drake
On Mon, 2009-03-09 at 13:30 -0400, Tom Lane wrote: > "Joshua D. Drake" writes: > > Sorry Tom. Greg is correct here although I disagree with his wording. It > > should be removed and if someone passes -d it should throw an ERROR that > > says something like: > > ERROR: -d has been replaced by -I >

Re: [HACKERS] Prepping to break every past release...

2009-03-09 Thread Joshua D. Drake
On Mon, 2009-03-09 at 13:59 -0400, Bruce Momjian wrote: > If this is the worst inconsistency you can find in our system tables > after +20 years of development, I feel pretty good. I was using a single example. This would be a large project I am sure and of course we should feel good. In all I wou

Re: [HACKERS] Updates of SE-PostgreSQL 8.4devel patches (r1704)

2009-03-09 Thread Tom Lane
KaiGai Kohei writes: > Yes, the purpose of sepgsqlCheckProcedureInstall() is to prevent users > to invoke functions installed by other malicious/untrusted one, typically > known as trojan-horse. > ... > We should not assume only C-functions can be installed on pg_conversion > (and other internal s

Re: [HACKERS] One less footgun: deprecating pg_dump -d

2009-03-09 Thread Joshua D. Drake
On Mon, 2009-03-09 at 12:48 -0400, Tom Lane wrote: > Greg Sabino Mullane writes: > > The solution I came up with is to use a new letter, -I, and to deprecate -d > > by > > having it throw an exception when used. > > "Deprecate" does not mean "break". Sorry Tom. Greg is correct here although I d

Re: [HACKERS] One less footgun: deprecating pg_dump -d

2009-03-09 Thread Tom Lane
Greg Sabino Mullane writes: > The solution I came up with is to use a new letter, -I, and to deprecate -d by > having it throw an exception when used. "Deprecate" does not mean "break". regards, tom lane -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.o

[HACKERS] One less footgun: deprecating pg_dump -d

2009-03-09 Thread Greg Sabino Mullane
Attached is a patch to fix the annoying footgun that is pg_dump -d. Myself and many others I know have all at one time or another done this: psql -h localhost -U greg -d postgres pg_dump -h localhost -U greg -d postgres > dumpfile The latter command silently succeeds, but only through the combin

Re: [HACKERS] small parallel restore optimization

2009-03-09 Thread Andrew Dunstan
Magnus Hagander wrote: Andrew Dunstan wrote: Alvaro Herrera wrote: Andrew Dunstan wrote: I have found the source of the problem I saw. dumputils.c:fmtId() uses a static PQExpBuffer which it initialises the first time it's called. This gets clobbered by simultaneous calls

Re: [HACKERS] [PATCH] Regression test fix for Czech locale

2009-03-09 Thread Peter Eisentraut
Zdenek Kotala wrote: I attached fix which modify foreign_data test. It fix problem with Czech collation when numbers are ordered after letters. I retyped affected column to name datatype which uses bitwise cmp. I have chosen a different fix: rename the identifiers so the ordering problem doesn

Re: [HACKERS] Updates of SE-PostgreSQL 8.4devel patches (r1704)

2009-03-09 Thread KaiGai Kohei
Heikki Linnakangas wrote: KaiGai Kohei wrote: As I promised last week, SE-PostgreSQL patches are revised here: I think I now understand what sepgsqlCheckProcedureInstall is trying to achieve. It's trying to stop attacks where you trick another user to run your malicious code. We had a seriou

Re: [HACKERS] Allow on/off as input texts for boolean.

2009-03-09 Thread Peter Eisentraut
ITAGAKI Takahiro wrote: Peter Eisentraut wrote: ITAGAKI Takahiro wrote: Here is a patch to allow 'on' and 'off' as input texts for boolean. Regarding your FIXME comment, I think parse_bool* should be in bool.c and declared in builtins.h, which guc.c already includes. (Conceptually, the vali

Re: [HACKERS] problem inserting in GIN index

2009-03-09 Thread Emanuel Calvo Franco
2009/3/9 Alvaro Herrera : > Tom Lane wrote: >> Alvaro Herrera writes: >> > A guy just reported on pgsql-es-ayuda that he's getting >> > ERROR: item pointer (543108,2) already exists >> Test case? > > Apparently there's a crash involved ... > I asked to Gabriel. The exactly version is 8.3.6. He ju

Re: [HACKERS] Sampling Profler for Postgres

2009-03-09 Thread Dickson S. Guedes
Em Seg, 2009-03-09 às 13:55 +0900, ITAGAKI Takahiro escreveu: > Therefore, I'd like to propose an profiler with sampling approach in 8.5. > The attached patch is an experimental model of the profiler. > Each backends reports its condtion in PgBackendStatus.st_condition > and the stats collector pro

Re: [HACKERS] Updates of SE-PostgreSQL 8.4devel patches (r1704)

2009-03-09 Thread Stephen Frost
* Tom Lane (t...@sss.pgh.pa.us) wrote: > Heikki Linnakangas writes: > > KaiGai Kohei wrote: > >> As I promised last week, SE-PostgreSQL patches are revised here: > > > The patch adds permission checks to SET/SHOW. If that's useful > > functionality, it would be nice to see that as a separate patc

Re: [HACKERS] status of remaining patches

2009-03-09 Thread Robert Haas
On Mar 9, 2009, at 4:53 AM, Dave Page wrote: On Sun, Mar 8, 2009 at 5:03 AM, Robert Haas wrote: The original patch was submitted by Koichi Suzuki - quite a few other people have looked at it and provided comments. Simon Riggs was assigned as the original reviewer, but for some reason Dave

Re: [HACKERS] V4 of PITR performance improvement for 8.4

2009-03-09 Thread Heikki Linnakangas
Fujii Masao wrote: On Tue, Mar 3, 2009 at 1:47 PM, Fujii Masao wrote: Hi Suzuki-san, On Thu, Feb 26, 2009 at 5:03 AM, Koichi Suzuki wrote: My reply to Gregory's comment didn't have any objections. I believe, as I posted to Wiki page, latest posted patch is okay and waiting for review. One

[HACKERS] Visibility function comment addition

2009-03-09 Thread Bruce Momjian
I have applied the following comment to summarize the visibility rules. I also added a URL about the Halloween problem. -- Bruce Momjian http://momjian.us EnterpriseDB http://enterprisedb.com + If your life is a hard drive, Christ can be your backup. +

Re: [HACKERS] Updates of SE-PostgreSQL 8.4devel patches (r1704)

2009-03-09 Thread Tom Lane
Heikki Linnakangas writes: > KaiGai Kohei wrote: >> As I promised last week, SE-PostgreSQL patches are revised here: > The patch adds permission checks to SET/SHOW. If that's useful > functionality, it would be nice to see that as a separate patch, not > requiring SE-Linux. My goodness. This pa

Re: [HACKERS] problem inserting in GIN index

2009-03-09 Thread Alvaro Herrera
Tom Lane wrote: > Alvaro Herrera writes: > > A guy just reported on pgsql-es-ayuda that he's getting > > ERROR: item pointer (543108,2) already exists > > > Test case? Apparently there's a crash involved ... -- Alvaro Herrera

Re: [HACKERS] problem inserting in GIN index

2009-03-09 Thread Tom Lane
Alvaro Herrera writes: > A guy just reported on pgsql-es-ayuda that he's getting > ERROR: item pointer (543108,2) already exists > Test case? regards, tom lane -- Sent via pgsql-hackers mailing list (pgsql-

Re: [HACKERS] libxml incompatibility

2009-03-09 Thread Andrew Dunstan
David Lee Lambert wrote: On 6 mar, 22:44, and...@dunslane.net (Andrew Dunstan) wrote: Holger Hoffstaette wrote: On Fri, 06 Mar 2009 14:32:25 -0600, Kenneth Marshall wrote: On Fri, Mar 06, 2009 at 02:58:30PM -0500, Andrew Dunstan wrote: Yes, I discovered this a few we

[HACKERS] problem inserting in GIN index

2009-03-09 Thread Alvaro Herrera
Hi, A guy just reported on pgsql-es-ayuda that he's getting ERROR: item pointer (543108,2) already exists Apparently this message only occurs on GIN, in insertItemPointer Reading that routine I cannot help but wonder -- where is g

Re: [HACKERS] small parallel restore optimization

2009-03-09 Thread Magnus Hagander
Andrew Dunstan wrote: > > > Alvaro Herrera wrote: >> Andrew Dunstan wrote: >> >> >>> I have found the source of the problem I saw. dumputils.c:fmtId() >>> uses a static PQExpBuffer which it initialises the first time it's >>> called. This gets clobbered by simultaneous calls by Windows thread

Re: [HACKERS] small parallel restore optimization

2009-03-09 Thread Magnus Hagander
Alvaro Herrera wrote: > Tom Lane wrote: > >> Worst case, we could say that parallel restore isn't supported on >> mingw. I'm not entirely sure why we bother with that platform at all... > > I think you're confusing it with cygwin ... Yeah. Much as I hate working around the quirks of mingw, I de

Re: [HACKERS] Updates of SE-PostgreSQL 8.4devel patches (r1704)

2009-03-09 Thread Heikki Linnakangas
KaiGai Kohei wrote: > As I promised last week, SE-PostgreSQL patches are revised here: The patch adds permission checks to SET/SHOW. If that's useful functionality, it would be nice to see that as a separate patch, not requiring SE-Linux. I think it's leaking because current_setting(), set_config

Re: [HACKERS] libxml incompatibility

2009-03-09 Thread David Lee Lambert
On 6 mar, 22:44, and...@dunslane.net (Andrew Dunstan) wrote: > Holger Hoffstaette wrote: > > On Fri, 06 Mar 2009 14:32:25 -0600, Kenneth Marshall wrote: > >> On Fri, Mar 06, 2009 at 02:58:30PM -0500, Andrew Dunstan wrote: > >>> Yes, I discovered this a few weeks ago. [...] > > Maybe someone can tra

Re: [HACKERS] Updates of SE-PostgreSQL 8.4devel patches (r1704)

2009-03-09 Thread KaiGai Kohei
Heikki Linnakangas wrote: > KaiGai Kohei wrote: >> As I promised last week, SE-PostgreSQL patches are revised here: > > There's checks for reading/writing files with COPY, in > sepgsqlCheckFileRead sepgsqlCheckFileWrite). Doesn't the OS do similar > checks when the process tries to invoke the read

Re: [HACKERS] Updates of SE-PostgreSQL 8.4devel patches (r1704)

2009-03-09 Thread Heikki Linnakangas
KaiGai Kohei wrote: As I promised last week, SE-PostgreSQL patches are revised here: I think I now understand what sepgsqlCheckProcedureInstall is trying to achieve. It's trying to stop attacks where you trick another user to run your malicious code. We had a serious vulnerability of that kin

Re: [HACKERS] Updates of SE-PostgreSQL 8.4devel patches (r1704)

2009-03-09 Thread Heikki Linnakangas
KaiGai Kohei wrote: > As I promised last week, SE-PostgreSQL patches are revised here: There's checks for reading/writing files with COPY, in sepgsqlCheckFileRead sepgsqlCheckFileWrite). Doesn't the OS do similar checks when the process tries to invoke the read()/write()? Is that not enough? --

Re: [HACKERS] status of remaining patches

2009-03-09 Thread Dave Page
On Sun, Mar 8, 2009 at 5:03 AM, Robert Haas wrote: > > The original patch was submitted by Koichi Suzuki - quite a few other > people have looked at it and provided comments.  Simon Riggs was > assigned as the original reviewer, but for some reason Dave Page > removed his name from the wiki a few

Re: [HACKERS] Out parameters handling

2009-03-09 Thread Pavel Stehule
2009/3/9 Ryan Bradetich : > On Sun, Mar 8, 2009 at 4:36 PM, Tom Lane wrote: >> Ryan Bradetich writes: >>> This is one of the things I wanted to start looking at for 8.5. >>> My idea was to optionally use : or @ (not sure which is more popular) to >>> specify this token is only a variable. >> >> T