Re: [HACKERS] Verbosity of Function Return Type Checks

2008-09-04 Thread Volkan YAZICI
On Thu, 04 Sep 2008, Tom Lane <[EMAIL PROTECTED]> writes: > This is not ready to go: you've lost the ability to localize most of > the error message strings. How can I make this available? What's your suggestion? > Also, "char *msg" should be "const char *msg" Done. > if you're going to pass li

Re: [HACKERS] Verbosity of Function Return Type Checks

2008-09-04 Thread Volkan YAZICI
On Thu, 4 Sep 2008, Alvaro Herrera <[EMAIL PROTECTED]> writes: > Cool, thanks. I had a look and you had some of the expected vs. > returned reversed. I'll happy to fix the reversed ones if you can report them in more details. Regards. -- Sent via pgsql-hackers mailing list (pgsql-hackers@post

Re: [HACKERS] [Review] pgbench duration option

2008-09-04 Thread ITAGAKI Takahiro
"Brendan Jurd" <[EMAIL PROTECTED]> wrote: > Josh assigned your patch to me for an initial review. Here's what I > have so far. Thank your for reviewing! > The -T option seems to work as advertised, and I wasn't able to detect > any performance degradation (or a significant variation of any kin

[HACKERS] [Review] pgbench duration option

2008-09-04 Thread Brendan Jurd
On Tue, Aug 19, 2008 at 12:24 PM, ITAGAKI Takahiro <[EMAIL PROTECTED]> wrote: > Ok, I rewrote the patch to use SIGALRM instead of gettimeofday. > Hi Itagaki-san, Josh assigned your patch to me for an initial review. Here's what I have so far. The patch applies cleanly on the latest git HEAD, an

Re: [HACKERS] [Review] Tests citext casts by David Wheeler.

2008-09-04 Thread David E. Wheeler
On Sep 4, 2008, at 21:40, Ryan Bradetich wrote: Overall I think the patch looks good. After reviewing the patch, I played with citext for an hour or so and I did not encounter any bugs or other surprises. Thanks for the review, Ryan! Best, David -- Sent via pgsql-hackers mailing list (p

[HACKERS] [Review] Tests citext casts by David Wheeler.

2008-09-04 Thread Ryan Bradetich
Hello all, Here is my review of the Test citext casts written by David Wheeler: http://archives.postgresql.org/message-id/[EMAIL PROTECTED] 1. The patch applies cleanly to the latest GIT repository. 2. The citext type installs, uninstalls, and re-installs cleanly. 3. The coding style is mostly

Re: [HACKERS] Need more reviewers!

2008-09-04 Thread Brendan Jurd
On Fri, Sep 5, 2008 at 6:54 AM, Simon Riggs <[EMAIL PROTECTED]> wrote: > On Thu, 2008-09-04 at 10:45 -0700, Josh Berkus wrote: > >> Please volunteer now! > > Everybody is stuck in "I'm not good enough to do a full review". They're > right (myself included), so that just means we're organising it wr

Re: [HACKERS] [ADMIN] SSL problems

2008-09-04 Thread Andriy Bakay
After I disable SSL option in postgresql.conf the server is starting successfully. Please, advise. Jan-Peter Seifert wrote: Hello Andriy, the reply-to settings are a bit uncomfortable here. Your mail went only to me. But I'm not part of the developer or support team. It's strange that pg_ctl

Re: [HACKERS] pg_dump roles support

2008-09-04 Thread Benedek László
Tom Lane wrote: Some other review nitpicking: Thank you for your review. I really need all suggestions, since I never posted any patch to the community before. The next patch will emit the SET ROLE command in the generated dump, as you and Stephen said. This will fit in my workflow too, si

Re: [HACKERS] Verbosity of Function Return Type Checks

2008-09-04 Thread Tom Lane
Alvaro Herrera <[EMAIL PROTECTED]> writes: > I wasn't able to run the tests in contrib, I don't know why, and I have > to go out now. I'll commit this tomorrow. This is not ready to go: you've lost the ability to localize most of the error message strings. Also, "char *msg" should be "const char

Re: [HACKERS] Need more reviewers!

2008-09-04 Thread Tom Lane
"Alex Hunsaker" <[EMAIL PROTECTED]> writes: > I can happily through some hardware at this. Although > "production-grade" is in the eye of the beholder... I just posted a revised patch in the pgsql-patches thread. regards, tom lane -- Sent via pgsql-hackers mailing list (

Re: [HACKERS] Need more reviewers!

2008-09-04 Thread Alex Hunsaker
On Thu, Sep 4, 2008 at 12:01 PM, Tom Lane <[EMAIL PROTECTED]> wrote: > I think what the hash index patch really needs is some performance > testing. I'm willing to take responsibility for the code being okay > or not, but I haven't got any production-grade hardware to do realistic > performance te

Re: [HACKERS] code coverage patch

2008-09-04 Thread Michelle Caisse
Thanks, I'll take a look at these issues. -- Michelle Alvaro Herrera wrote: Michelle Caisse wrote: I've attached a patch that allows the generation of code coverage statistics. To test it, apply the patch, then: autoconf ./configure --enable-coverage make make check (or execute any othe

Re: [HACKERS] Verbosity of Function Return Type Checks

2008-09-04 Thread Alvaro Herrera
Volkan YAZICI wrote: > Made callers pass related error message as a string parameter, and > appended required details using errdetail(). Cool, thanks. I had a look and you had some of the expected vs. returned reversed. This patch should be OK. Amazingly, none of the regression tests need chan

Re: [HACKERS] code coverage patch

2008-09-04 Thread Alvaro Herrera
Michelle Caisse wrote: > I've attached a patch that allows the generation of code coverage > statistics. To test it, apply the patch, then: > > autoconf > ./configure --enable-coverage > make > make check (or execute any other application against the database to see > the coverage of that app)

Re: [HACKERS] Prototype: In-place upgrade

2008-09-04 Thread Heikki Linnakangas
The patch seems to be missing the new htup.c file. Zdenek Kotala wrote: Attached patch is prototype of in-place upgrade as was presented on PGCon this year. Main idea is to learn postgres to handle different version of page and tuple structures. 1) page - Patch contains new page API and all

Re: [HACKERS] Need more reviewers!

2008-09-04 Thread Tom Lane
Simon Riggs <[EMAIL PROTECTED]> writes: > On Thu, 2008-09-04 at 14:01 -0400, Tom Lane wrote: >> If anyone is willing to do comparative performance testing, I'll >> volunteer to make up two variant patches that do it both ways and >> are otherwise equivalent. > Why not do both, set via a reloption?

Re: [HACKERS] Page layout footprint

2008-09-04 Thread Heikki Linnakangas
Zdenek Kotala wrote: The original proposal (http://archives.postgresql.org/message-id/[EMAIL PROTECTED]) contains two parts. First part is implementation of --footprint cmd line switch which shows you page layout structures footprint. It is useful for development (mostly for in-place upgrade)

Re: [HACKERS] Need more reviewers!

2008-09-04 Thread Simon Riggs
On Thu, 2008-09-04 at 10:45 -0700, Josh Berkus wrote: > We currently have 38 patches pending, and only nine people reviewing them. > At this rate, the September commitfest will take three months. > > If you are a postgresql hacker at all, or even want to be one, we need your > help reviewin

Re: [HACKERS] Need more reviewers!

2008-09-04 Thread Simon Riggs
On Thu, 2008-09-04 at 14:01 -0400, Tom Lane wrote: > If anyone is willing to do comparative performance testing, I'll > volunteer to make up two variant patches that do it both ways and > are otherwise equivalent. Why not do both, set via a reloption? We can then set the default to whichever win

Re: [HACKERS] [patch] GUC source file and line number]

2008-09-04 Thread Greg Smith
On Thu, 4 Sep 2008, Kevin Grittner wrote: Personally, I would take the "Min", "Default", and "Max" to mean what Greg intends; it's the "Current" one that gives me pause. That's the output of current_setting(name) which shows what it is right now; no more, no less. See http://www.postgresql.

Re: [HACKERS] Need more reviewers!

2008-09-04 Thread Tom Lane
Kenneth Marshall <[EMAIL PROTECTED]> writes: > On Thu, Sep 04, 2008 at 02:01:18PM -0400, Tom Lane wrote: >> I think what the hash index patch really needs is some performance >> testing. I'm willing to take responsibility for the code being okay >> or not, but I haven't got any production-grade ha

Re: [HACKERS] Need more reviewers!

2008-09-04 Thread Kenneth Marshall
On Thu, Sep 04, 2008 at 02:01:18PM -0400, Tom Lane wrote: > "Jonah H. Harris" <[EMAIL PROTECTED]> writes: > > I'll push forward on reviewing and testing Xiao's hash index > > improvements for inclusion into core. Though, someone will still need > > to review my stuff. > > I think what the hash in

Re: [HACKERS] Window functions patch v04 for the September commit fest

2008-09-04 Thread Heikki Linnakangas
Heikki Linnakangas wrote: I'll review the parser/planner changes from the current patch. Looks pretty sane to me. Few issues: Is it always OK to share a window between two separate window function invocations, if they both happen to have identical OVER clause? It seems OK for stable function

Re: [HACKERS] Need more reviewers!

2008-09-04 Thread Tom Lane
"Jonah H. Harris" <[EMAIL PROTECTED]> writes: > I'll push forward on reviewing and testing Xiao's hash index > improvements for inclusion into core. Though, someone will still need > to review my stuff. I think what the hash index patch really needs is some performance testing. I'm willing to ta

Re: [HACKERS] Need more reviewers!

2008-09-04 Thread Jonah H. Harris
On Thu, Sep 4, 2008 at 1:45 PM, Josh Berkus <[EMAIL PROTECTED]> wrote: > We currently have 38 patches pending, and only nine people reviewing them. > At this rate, the September commitfest will take three months. I'll push forward on reviewing and testing Xiao's hash index improvements for inclusi

[HACKERS] Need more reviewers!

2008-09-04 Thread Josh Berkus
Hackers, We currently have 38 patches pending, and only nine people reviewing them. At this rate, the September commitfest will take three months. If you are a postgresql hacker at all, or even want to be one, we need your help reviewing patches! There are several "easy" patches in the list

Re: [HACKERS] [PATCHES] hash index improving v3

2008-09-04 Thread Simon Riggs
On Thu, 2008-09-04 at 21:03 +0800, Xiao Meng wrote: > On Thu, Sep 4, 2008 at 10:06 AM, Simon Riggs <[EMAIL PROTECTED]> > wrote: > You don't give the text of the query used to do these > performance tests, > > so I can't validate your test results. > > The attachme

Re: Column level privileges was:(Re: [HACKERS] Extending grant insert on tables to sequences)

2008-09-04 Thread Stephen Frost
Jaime, * Jaime Casanova ([EMAIL PROTECTED]) wrote: > On 7/25/08, Stephen Frost <[EMAIL PROTECTED]> wrote: > > Yes, I'm working on it > > hi, any work on it? may i help? If you look at the commitfest, I've posted my WIP so far there. Most of the grammer, parser, and catalog changes are there. T

Re: [HACKERS] Extending grant insert on tables to sequences

2008-09-04 Thread Jaime Casanova
On Wed, Sep 3, 2008 at 7:03 PM, Tom Lane <[EMAIL PROTECTED]> wrote: > > In short, this patch isn't much more ready to commit than it was > in the last fest. > Just for the record, i put this updated patch just because there were an entry for "Extending grant insert on tables to sequences" for this

Re: [HACKERS] StartupCLOG

2008-09-04 Thread Simon Riggs
On Thu, 2008-09-04 at 12:18 -0400, Tom Lane wrote: > Simon Riggs <[EMAIL PROTECTED]> writes: > > I was thinking about what happens when you are performing a PITR using > > log records that contain a crash/recovery/shutdown checkpoint sequence. > > > I take it there's no problem there? > > I don'

Re: [HACKERS] StartupCLOG

2008-09-04 Thread Tom Lane
Simon Riggs <[EMAIL PROTECTED]> writes: > I was thinking about what happens when you are performing a PITR using > log records that contain a crash/recovery/shutdown checkpoint sequence. > I take it there's no problem there? I don't really see one. I believe the reason for the StartupCLOG action

Re: [HACKERS] Debugging methods

2008-09-04 Thread Tom Lane
M2Y <[EMAIL PROTECTED]> writes: > I am a beginner to Postgres and I am going through code. I would like > to know the debugging methods used in development. > Some of my requirements are; for a given query, how parse structures > are created in pg_parse_query, how they are analyzed and rewritten i

Re: [HACKERS] StartupCLOG

2008-09-04 Thread Simon Riggs
On Thu, 2008-09-04 at 11:12 -0400, Tom Lane wrote: > Simon Riggs <[EMAIL PROTECTED]> writes: > > I notice that StartupCLOG zeroes out entries later than the nextxid when > > we complete recovery in StartupXLOG, reason given is safety in case we > > crash. > > > ISTM that we should also do that wh

Re: [HACKERS] [PATCH] Cleanup of GUC units code

2008-09-04 Thread Andrew Sullivan
On Thu, Sep 04, 2008 at 07:01:18AM -0700, Steve Atkins wrote: > Settings in postgresql.conf are currently case-insensitive. Except > for the units. And, of course, filenames when you are using a case-sensitive filesystem. Because these are things that are defined by some convention other than the

Re: [HACKERS] StartupCLOG

2008-09-04 Thread Tom Lane
Simon Riggs <[EMAIL PROTECTED]> writes: > I notice that StartupCLOG zeroes out entries later than the nextxid when > we complete recovery in StartupXLOG, reason given is safety in case we > crash. > ISTM that we should also do that whenever we see a Shutdown Checkpoint > in WAL, since that can be

Re: [HACKERS] [PATCH] Cleanup of GUC units code

2008-09-04 Thread Hannu Krosing
On Thu, 2008-09-04 at 09:29 -0400, Andrew Sullivan wrote: > On Thu, Sep 04, 2008 at 01:26:44AM +0300, Hannu Krosing wrote: > > > So Andrews opinion was that Mb (meaning Mbit) is different from MB (for > > megabyte) and that if someone thinks that we define shared buffers in > > megabits can get co

Re: [HACKERS] [patch] GUC source file and line number]

2008-09-04 Thread Kevin Grittner
>>> Greg Smith <[EMAIL PROTECTED]> wrote: > name | Recommended | Current | Min | Default | Max > -+-+-+---+-+- > wal_buffers | 1024kB | 64kB| 32 kB | 64 kB | 2048 MB Personally, I would take the "Min", "Default", and

Re: [HACKERS] [PATCH] Cleanup of GUC units code

2008-09-04 Thread Steve Atkins
On Sep 4, 2008, at 6:29 AM, Andrew Sullivan wrote: On Thu, Sep 04, 2008 at 01:26:44AM +0300, Hannu Krosing wrote: So Andrews opinion was that Mb (meaning Mbit) is different from MB (for megabyte) and that if someone thinks that we define shared buffers in megabits can get confused and order

Re: [HACKERS] Debugging methods

2008-09-04 Thread Markus Wanner
Hi, M2Y wrote: I am a beginner to Postgres and I am going through code. I would like to know the debugging methods used in development. Try ./configure with '--enable-debug' and '--enable-cassert', as outlined in the developer's FAQ [1], where you certainly find more information as well. The

[HACKERS] Debugging methods

2008-09-04 Thread M2Y
Hello, I am a beginner to Postgres and I am going through code. I would like to know the debugging methods used in development. Some of my requirements are; for a given query, how parse structures are created in pg_parse_query, how they are analyzed and rewritten in pg_analyze_and_rewrite and how

Re: [HACKERS] Conflict resolution in Multimaster replication(Postgres-R)

2008-09-04 Thread Markus Wanner
Hello Srinivas, M2Y wrote: Markus: It looks like the hybrid approach used by Postgres-R(as described in that paper) is good. Well, yeah. That's why am working on it ;-) You are very welcome to download the patch and dig into the sources. See www.postgres-r.org for more information. To answ

Re: [HACKERS] [PATCH] Cleanup of GUC units code

2008-09-04 Thread Andrew Sullivan
On Thu, Sep 04, 2008 at 01:26:44AM +0300, Hannu Krosing wrote: > So Andrews opinion was that Mb (meaning Mbit) is different from MB (for > megabyte) and that if someone thinks that we define shared buffers in > megabits can get confused and order wrong kind of network card ? I know it's fun to po

Re: [HACKERS] [PATCH] Cleanup of GUC units code

2008-09-04 Thread Alvaro Herrera
Hannu Krosing escribió: > On Wed, 2008-09-03 at 20:01 -0400, Alvaro Herrera wrote: > > Yes there is --- it's the SI. > > > > http://en.wikipedia.org/wiki/SI#SI_writing_style > > > > I don't know about it being "evil" and punishment, but it's wrong. > > SI defines decimal-based prefixes, where k

[HACKERS] xml2 vs XMLFunctions

2008-09-04 Thread Tobias Anstett
Hi, I am writing you this mail, because I am currently using xml2 functionality in PostgreSQL 8.3.x and want to substitute it by the newer API as mentioned here: >From PostgreSQL 8.3 on, there is XML-related functionality based on the SQL/XML standard in the core server. That functionality

Re: [HACKERS] [PATCHES] hash index improving v3

2008-09-04 Thread Xiao Meng
On Thu, Sep 4, 2008 at 10:06 AM, Simon Riggs <[EMAIL PROTECTED]> wrote: > You don't give the text of the query used to do these performance tests, > so I can't validate your test results. > The attachment is the code to generate the text. Just $g++ my-permu-code.cpp $./a.out > /tmp/words -- Bes

Re: [HACKERS] Conflict resolution in Multimaster replication(Postgres-R)

2008-09-04 Thread M2Y
Thank you very much Robert and Markus. > What kind of replication are you interested in? > Markus: It looks like the hybrid approach used by Postgres-R(as described in that paper) is good. Thanks, Srinivas -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to

Re: [HACKERS] Window functions patch v04 for the September commit fest

2008-09-04 Thread Heikki Linnakangas
Hitoshi Harada wrote: BTW, I think it is better to put together the discussion points we have done as "general roadmap to complete window functions". It is not about the features for the next release but is the complete tasks. Where to go? Wiki, or my design docs? That's up to you, really. I li

Re: [HACKERS] New FSM patch

2008-09-04 Thread Simon Riggs
On Thu, 2008-09-04 at 11:07 +0300, Heikki Linnakangas wrote: > Thanks for the review! Not as thorough as I would have liked, I must admit. Thanks for the other confirmations. > Scenario: The binary tree on a page is corrupt, so that the value of an > upper node is > Max(leftchild, rightchild).

Re: [HACKERS] Conflict resolution in Multimaster replication(Postgres-R)

2008-09-04 Thread Markus Wanner
Hello Srinivas, M2Y wrote: My basic question is: in multimaster replication, if each site goes ahead and does the modifications issued by the transaction and then sends the writeset to others in the group, how the ACID properties be maintained? Well, there are different approaches. With regard

[HACKERS] StartupCLOG

2008-09-04 Thread Simon Riggs
I notice that StartupCLOG zeroes out entries later than the nextxid when we complete recovery in StartupXLOG, reason given is safety in case we crash. ISTM that we should also do that whenever we see a Shutdown Checkpoint in WAL, since that can be caused by a shutdown immediate, shutdown abort or

Re: [HACKERS] New FSM patch

2008-09-04 Thread Heikki Linnakangas
Thanks for the review! Simon Riggs wrote: Can I check some aspects of this related to Hot Standby? Some of them sound obvious, but worth double checking. * There will be no need to read FSM by any normal operation of a read-only transaction, so locking correctness considerations can possibly be

Re: [HACKERS] [PATCH] Cleanup of GUC units code

2008-09-04 Thread Dimitri Fontaine
Le jeudi 04 septembre 2008, Robert Treat a écrit : > To paraphrase, "if you can't write a config file correctly before > restarting, I do not want you anywhere near any instance of a production > system" Do you really want to TCO of PostgreSQL to raise that much when the software could help lower