[HACKERS] Unreliable pg_ctl -w start again

2012-01-27 Thread MauMau
. if (old_pid != 0) { pg_usleep(100); pid = get_pgpid(); if (pid == old_pid postmaster_is_alive(pid)) { write_stderr(_(%s: could not start server\n Examine the log output.\n), progname); exit(1); } } Regards MauMau -- Sent via pgsql-hackers mailing list (pgsql-hackers

Re: [HACKERS] Unreliable pg_ctl -w start again

2012-01-27 Thread MauMau
() sets the process handle in the structure passed to it. We can pass the process handle to WaitForSingleObject8) to know whether postmaster is alive. Regards MauMau -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http

Re: [HACKERS] Unreliable pg_ctl -w start again

2012-01-27 Thread MauMau
() sets the process handle in the structure passed to it. We can pass the process handle to WaitForSingleObject8) to know whether postmaster is alive. Regards MauMau -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http

Re: [HACKERS] Unreliable pg_ctl -w start again

2012-01-27 Thread MauMau
effective solution will be accepted. Regards MauMau -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers

[HACKERS] [Bug fix] postmaster always crashes on a debug version of Windows

2012-02-15 Thread MauMau
Hello I encountered a bug which always causes PostgreSQL to crash on Windows. Attached is a patch that fixes it. Please review it and include it in the upcoming minor releases of supported versions. The following is a bug report. Your name :MauMau Your email address :maumau...@gmail.com

[HACKERS] Serious problem: media recovery fails after system or PostgreSQL crash

2012-12-06 Thread MauMau
tomorrow or the next day. Could you include the fix in the weekend release? Regards MauMau -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers

Re: [HACKERS] Serious problem: media recovery fails after system or PostgreSQL crash

2012-12-06 Thread MauMau
of use of PostgreSQL. So I believe PG should handle the problem, not the archive_command. Regards MauMau -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers

Re: [HACKERS] Serious problem: media recovery fails after system or PostgreSQL crash

2012-12-06 Thread MauMau
think about this fix? I think having PG automatically destroy archive files is bordering on insane. I agree. Before that, PG cannot know the archive location, so PG cannot delete the partially filled archive files. Regards MauMau -- Sent via pgsql-hackers mailing list (pgsql-hackers

Re: [HACKERS] Serious problem: media recovery fails after system or PostgreSQL crash

2012-12-07 Thread MauMau
will not be overwritten. Could you give me opinions what to do? I'm willing to submit these fixes. Regards MauMau -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers

Re: [HACKERS] Back-branch update releases coming in a couple weeks

2013-01-23 Thread MauMau
might relate to this problem. Does this fix the problem? [BUG] lag of minRecoveryPont in archive recovery http://www.postgresql.org/message-id/20121206.130458.170549097.horiguchi.kyot...@lab.ntt.co.jp Regards MauMau -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org

Re: [HACKERS] Back-branch update releases coming in a couple weeks

2013-01-24 Thread MauMau
From: Fujii Masao masao.fu...@gmail.com On Thu, Jan 24, 2013 at 7:42 AM, MauMau maumau...@gmail.com wrote: I searched through PostgreSQL mailing lists with WAL contains references to invalid pages, and i found 19 messages. Some people encountered similar problem. There were some discussions

Re: [HACKERS] Back-branch update releases coming in a couple weeks

2013-01-26 Thread MauMau
From: Fujii Masao masao.fu...@gmail.com On Thu, Jan 24, 2013 at 11:53 PM, MauMau maumau...@gmail.com wrote: I'm wondering if the fix discussed in the above thread solves my problem. I found the following differences between Horiguchi-san's case and my case: (1) Horiguchi-san says the bug

Re: [HACKERS] Back-branch update releases coming in a couple weeks

2013-01-27 Thread MauMau
From: Fujii Masao masao.fu...@gmail.com On Sun, Jan 27, 2013 at 12:17 AM, MauMau maumau...@gmail.com wrote: Although you said the fix will solve my problem, I don't feel it will. The discussion is about the crash when the standby restarts after the primary vacuums and truncates a table

backend hangs at immediate shutdown (Re: [HACKERS] Back-branch update releases coming in a couple weeks)

2013-01-30 Thread MauMau
? If it's okay and you want, I'll submit the patch. Regards MauMau -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers

Re: backend hangs at immediate shutdown (Re: [HACKERS] Back-branch update releases coming in a couple weeks)

2013-01-30 Thread MauMau
From: Tom Lane t...@sss.pgh.pa.us MauMau maumau...@gmail.com writes: I think the solution is the typical one. That is, to just remember the receipt of SIGQUIT by setting a global variable and call siglongjmp() in quickdie(), and perform tasks currently done in quickdie() when sigsetjmp

[HACKERS] Can pg_trgm handle non-alphanumeric characters?

2012-05-09 Thread MauMau
KEEPONLYALNUM in contrib/pg_trgm/trgm.h? If no, what kind of problems would happen? Regards MauMau -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers

Re: [HACKERS] Can pg_trgm handle non-alphanumeric characters?

2012-05-09 Thread MauMau
From: Fujii Masao masao.fu...@gmail.com On Wed, May 9, 2012 at 9:10 PM, MauMau maumau...@gmail.com wrote: This question may be appropriate for pgsql-general, but let me ask here because the only relevant discussion seems to have been done on pgsql-hackers: http://archives.postgresql.org/pgsql

Re: [HACKERS] Can pg_trgm handle non-alphanumeric characters?

2012-05-10 Thread MauMau
From: Fujii Masao masao.fu...@gmail.com On Thu, May 10, 2012 at 8:18 AM, Euler Taveira eu...@timbira.com wrote: On 09-05-2012 19:17, MauMau wrote: Then, does it make sense to remove #define KEEPONLYALNUM in 9.1.4? Would it cause any problems? If no, I wish that, because it eliminates the need

Re: [HACKERS] Can pg_trgm handle non-alphanumeric characters?

2012-05-10 Thread MauMau
From: Kevin Grittner kevin.gritt...@wicourts.gov MauMau maumau...@gmail.com wrote: For information, what kind of breakage would occur? I imagined removing KEEPONLYALNUM would just accept non-alphanumeric characters and cause no harm to those who use only alphanumeric characters. This would

Re: [HACKERS] Can pg_trgm handle non-alphanumeric characters?

2012-05-11 Thread MauMau
From: Kevin Grittner kevin.gritt...@wicourts.gov MauMau maumau...@gmail.com wrote: For information, what kind of breakage would occur? I imagined removing KEEPONLYALNUM would just accept non-alphanumeric characters and cause no harm to those who use only alphanumeric characters. This would

[HACKERS] patch for distinguishing PG instances in event log

2011-05-26 Thread MauMau
if someone could test it on 64-bit Windows who has the 64-bit environment. I'll add this patch to the first CommitFest of 9.2. Thank you in advance for reviewing it. Regards MauMau multi_event_source.patch Description: Binary data -- Sent via pgsql-hackers mailing list (pgsql-hackers

[HACKERS] What is the best and easiest implementation to reliably wait for the completion of startup?

2011-05-27 Thread MauMau
through system() call. Please give me your ideas. Of course, I would be very happy if some experienced community member could address this problem. And finally, do you think this should be handled as a bug, or an improvement in 9.2? Regards MauMau -- Sent via pgsql-hackers mailing list (pgsql

[HACKERS] How can I check the treatment of bug fixes?

2011-05-27 Thread MauMau
Hello, I posted a patch for bug #6011 to pgsql-hackers several days ago. How can I check the status of bug fixes? I'm worried that the patch might be forgotten, because bug #5842 was missed for two months until Bruce noticed it. Regards MauMau -- Sent via pgsql-hackers mailing list (pgsql

Re: [HACKERS] What is the best and easiest implementation to reliably wait for the completion of startup?

2011-05-27 Thread MauMau
From: Tom Lane t...@sss.pgh.pa.us MauMau maumau...@gmail.com writes: The bad thing is that pg_ctl continues to wait until the specified duration passes, even if postgres fails to start. For example, it is naturally desirable for pg_ctl to terminate when postgresql.conf contains a syntax error

Re: [HACKERS] How can I check the treatment of bug fixes?

2011-05-27 Thread MauMau
counts such as the number of bugs per major/minor release, not-fixed bugs, new features in each major release, etc. Regards MauMau -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers

Re: [HACKERS] How can I check the treatment of bug fixes?

2011-05-31 Thread MauMau
Items list a few days later. (But I'm reluctant to pollute those pages with bug fixes which apply to previous versions. That can't be helped.) Regards MauMau -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org

[HACKERS] Cannot receive posts to pgsql-hackers through news server

2011-06-03 Thread MauMau
MLs such as pgsql-general, pgsql-jdbc etc. What could be wrong? Regards MauMau -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers

Re: [HACKERS] Fw: [BUGS] BUG #6011: Some extra messages are output in the event log at PostgreSQL startup

2011-06-09 Thread MauMau
for me. Regards MauMau -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers

Re: [HACKERS] patch for distinguishing PG instances in event log

2011-07-15 Thread MauMau
() and set PostgreSQL to it in DllInstall(). DllInstall() is not called when /i is not specified. So, event_source remains empty. To solve the problem, we need to use wcstombs_s() instead of strncpy(), and initialize event_source to PostgreSQL when it is defined. Regards MauMau -- Sent via

[HACKERS] patch for distinguishing PG instances in event log v2

2011-07-15 Thread MauMau
open CommitFest 2001-9 shortly. Please review it again. Regards MauMau multi_event_source_v2.patch Description: Binary data -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers

[HACKERS] How can I change patch status in CommitFest application?

2011-07-15 Thread MauMau
on the same machine to distinguish themselves in the event log Edit Patch - Move To Another CommitFest - Delete Patch https://commitfest.postgresql.org/action/patch_view?id=562 What should I do? Where should I refer to handle patch status correctly? Regards MauMau -- Sent via pgsql-hackers mailing

Re: [HACKERS] How can I change patch status in CommitFest application?

2011-07-16 Thread MauMau
From: Tom Lane t...@sss.pgh.pa.us MauMau maumau...@gmail.com writes: I re-submitted a patch and added a comment on the page below. I chose patch from the comment type drop-down box, but the patch status does not change from waiting on author. I expected the patch status would become needs

Re: [HACKERS] backend hangs at immediate shutdown

2013-01-31 Thread MauMau
As I promised yesterday, I'll show you the precise call stack: #0 0x003fa0cf542e in __lll_lock_wait_private () from /lib64/libc.so.6 #1 0x003fa0c7bed5 in _L_lock_9323 () from /lib64/libc.so.6 #2 0x003fa0c797c6 in malloc () from /lib64/libc.so.6 #3 0x003fa0c2fd99 in

Re: [HACKERS] backend hangs at immediate shutdown

2013-01-31 Thread MauMau
From: Tom Lane t...@sss.pgh.pa.us MauMau maumau...@gmail.com writes: How about the case where some backend crashes due to a bug of PostgreSQL? In this case, postmaster sends SIGQUIT to all backends, too. The instance is expected to disappear cleanly and quickly. Doesn't the hanging backend

Re: backend hangs at immediate shutdown (Re: [HACKERS] Back-branch update releases coming in a couple weeks)

2013-01-31 Thread MauMau
From: Peter Eisentraut pete...@gmx.net On 1/30/13 9:11 AM, MauMau wrote: When I ran pg_ctl stop -mi against the primary, some applications connected to the primary did not stop. The cause was that the backends was deadlocked in quickdie() with some call stack like the following. I'm sorry

Re: backend hangs at immediate shutdown (Re: [HACKERS] Back-branch update releases coming in a couple weeks)

2013-02-07 Thread MauMau
if all of the child processes do not terminate within 10 seconds since the start of immediate shutdown or FatalError condition. 3. On Windows, kill(SIGKILL) calls TerminateProcess(). 4. Documentation change to describe the behavior of immediate shutdown. Regards MauMau

[HACKERS] Does RelCache/SysCache shrink except when relations are deleted?

2011-09-28 Thread MauMau
., somefunc just copy records), the virtual memory of postgres does not increase. Is there anything to reason about his comment? Regards MauMau -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql

Re: [HACKERS] Does RelCache/SysCache shrink except when relations are deleted?

2011-09-29 Thread MauMau
/SysCache may be the cause. 2011/9/28 MauMau maumau...@gmail.com: Q1: When are the RelCache/SysCache entries removed from CacheMemoryContext? Are they removed only when the corresponding relations are deleted? If so, many tables and indexes is not friendly for the current PostgreSQL? Regards MauMau

Re: [HACKERS] Does RelCache/SysCache shrink except when relations are deleted?

2011-09-29 Thread MauMau
/SysCache. As far as I read the code, PostgreSQL seems to use memory for RelCache/SysCache without limit until the relations are dropped. Regards MauMau -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref

Re: [HACKERS] Does RelCache/SysCache shrink except when relations are deleted?

2011-09-29 Thread MauMau
the reason. I will report it to the customer and ask him to consider taking the following measures: * reduce shared_buffers * run somefunc() and VACUUM in different psql sessions * process 100,000 tables in multiple psql sessions Regards MauMau -- Sent via pgsql-hackers mailing list (pgsql

Re: [HACKERS] Does RelCache/SysCache shrink except when relations are deleted?

2011-09-29 Thread MauMau
to rethink your schema. 10 tables is far beyond what any sane design could require, and is costing you on many levels (I'm sure the OS and filesystem aren't that happy with it either). I agree. I'll suggest that to the customer, too. Thank you very much. Regards MauMau -- Sent via pgsql

Re: [HACKERS] patch for distinguishing PG instances in event log v2

2011-10-26 Thread MauMau
From: Magnus Hagander mag...@hagander.net 2011/7/16 MauMau maumau...@gmail.com: Hello, The attached file is a revised patch which reflects all review comments by Magnus in: http://archives.postgresql.org/pgsql-hackers/2011-07/msg00839.php I have applied this patch after another round

[HACKERS] Feature proposal: distinguish each PostgreSQL instance in the event log

2011-03-22 Thread MauMau
. Regards MauMau -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers

Re: [HACKERS] Feature proposal: distinguish each PostgreSQL instance in the event log

2011-03-22 Thread MauMau
-- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers

Re: [HACKERS] Feature proposal: distinguish each PostgreSQL instance in the event log

2011-03-22 Thread MauMau
I'm sorry that I've mistakenly sent an empty mail. This is the intended mail. Andrew Dunstan and...@dunslane.net wrote in message news:4d889879.3080...@dunslane.net... On 03/22/2011 08:22 AM, MauMau wrote: I would appreciate your opinions and advice. I'll try making the patch while I'm

Re: [HACKERS] Feature proposal: distinguish each PostgreSQL instance in the event log

2011-05-10 Thread MauMau
From: Tom Lane t...@sss.pgh.pa.us MauMau maumau...@gmail.com writes: I've encountered one problem on Windows. I need to support running all of my products on one host simultaneously. Plus, I need to log messages in syslog/event log. On Linux, I can distinguish the messages of one product

Re: [HACKERS] Feature proposal: distinguish each PostgreSQL instance in the event log

2011-05-11 Thread MauMau
because starting/stopping the database/application is infrequent once the system is in steady operation. -- this may sound abrupt, though. Regards, MauMau - Original Message - From: Dave Page dp...@pgadmin.org To: Tom Lane t...@sss.pgh.pa.us Cc: MauMau maumau...@gmail.com; pgsql-hackers

[HACKERS] Fw: [BUGS] BUG #6011: Some extra messages are output in the event log at PostgreSQL startup

2011-05-12 Thread MauMau
that some committer will modify and commit the change directly? Regards, MauMau From: MauMau maumau...@gmail.com Sent: Saturday, May 07, 2011 9:35 AM Subject: Re: [BUGS] BUG #6011: Some extra messages are output in the event log at PostgreSQL startup Magnus Hagander mag...@hagander.net writes: Any

Re: [HACKERS] Fw: [BUGS] BUG #6011: Some extra messages are output in the event log at PostgreSQL startup

2011-05-13 Thread MauMau
servicename] [-U username] [-P password] [-D datadir] [-w] [-t seconds] [-o options] Regards, MauMau -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers

[HACKERS] Cannot build docs of 9.1 on Windows

2011-05-16 Thread MauMau
4.01 Transitional//EN http://www.w3.org/TR/html4/loose.dtd; HTML HEAD TITLE PostgreSQL 9.1beta1 Documentation/TITLE META ... /BODY /HTML Docs build complete. -- Regards, MauMau -- Sent via pgsql-hackers mailing list (pgsql-hackers

Re: [HACKERS] Cannot build docs of 9.1 on Windows

2011-05-19 Thread MauMau
From: Andrew Dunstan and...@dunslane.net On Thu, May 19, 2011 10:32 am, Robert Haas wrote: 2011/5/16 MauMau maumau...@gmail.com: Can't open perl script make-errcodes-table.pl: No such file or directory I think this is the root of the problem. We have no script called make-errcodes-table.pl

Re: [HACKERS] Do you recommend 8.4 or 9.0 for basic usage?

2011-05-22 Thread MauMau
. Yes, I was torn between pgsql-hackers and pgsql-general. I didn't want to unintentionally give misconception about 9.0 quality to general users, so I kept the mail here in the end. Regards, MauMau -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your

Re: [HACKERS] Fw: [BUGS] BUG #6011: Some extra messages are output in the event log at PostgreSQL startup

2011-05-23 Thread MauMau
From: Kevin Grittner kevin.gritt...@wicourts.gov MauMau maumau...@gmail.com wrote: Make pg_ctl's -s option suppress informational event logging. This will ultimately be up to a committer (and I'm not one), but to me it seems reasonable to back-patch if it is addressed this way

Re: [HACKERS] Cannot build docs of 9.1 on Windows

2011-05-24 Thread MauMau
Andrew, From: Andrew Dunstan and...@dunslane.net builddoc.bat failed on my system and reading it made my head hurt. So I did what I've done with other bat files and rewrote it in Perl. The result is attached. It works for me, and should be a dropin replacement. Just put it in the src/tools/msvc

Re: [HACKERS] Hard limit on WAL space used (because PANIC sucks)

2013-06-08 Thread MauMau
hope PostgreSQL will provide a reliable archiving facility that is ready to use. Regards MauMau -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers

Re: [HACKERS] Hard limit on WAL space used (because PANIC sucks)

2013-06-08 Thread MauMau
From: Joshua D. Drake j...@commandprompt.com On 06/08/2013 07:36 AM, MauMau wrote: 3. You cannot know the reason of archive_command failure (e.g. archive area full) if you don't use PostgreSQL's server logging. This is because archive_command failure is not logged in syslog/eventlog. Wait

Re: [HACKERS] Hard limit on WAL space used (because PANIC sucks)

2013-06-08 Thread MauMau
can't happen events has occurred like PostgreSQL's bug. I didn't expect postgres dumps core simply because disk is full. I want postgres to shutdown with FATAL message in that exact case. Regards MauMau -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes

Re: [HACKERS] Hard limit on WAL space used (because PANIC sucks)

2013-06-08 Thread MauMau
full is encountered at end-of-recovery checkpoint, force archiving all unarchived WAL files and delete/recycle them at that time. Regards MauMau -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref

Re: [HACKERS] Hard limit on WAL space used (because PANIC sucks)

2013-06-09 Thread MauMau
From: Craig Ringer cr...@2ndquadrant.com On 06/09/2013 08:32 AM, MauMau wrote: - Failure of a disk containing data directory or tablespace If checkpoint can't write buffers to disk because of disk failure, checkpoint cannot complete, thus WAL files accumulate in pg_xlog/. This means that one

Re: [HACKERS] Hard limit on WAL space used (because PANIC sucks)

2013-06-10 Thread MauMau
would you approach this? Thanks Craig, you gave me some interesting insights. All of these topics are interesting, and I'd like to work on them when I have acquired enough knowledge and experience in PostgreSQL development. Regards MauMau -- Sent via pgsql-hackers mailing list (pgsql

[HACKERS] Memory leak in PL/pgSQL function which CREATE/SELECT/DROP a temporary table

2013-06-18 Thread MauMau
and a reasonable behavior, is it described anywhere? Regards MauMau myfunc.pgc Description: Binary data myfunc.sql Description: Binary data -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers

Re: [HACKERS] Memory leak in PL/pgSQL function which CREATE/SELECT/DROP a temporary table

2013-06-18 Thread MauMau
function is irrelevant. The leak occurs even when you do not use PL/pgSQL. [Wordaround] Use CREATE TABLE IF NOT EXISTS and TRUNCATE (or ON COMMIT DROP in case of temporary tables) to avoid repeated creation/deletion of the same table. Regards MauMau -- Sent via pgsql-hackers mailing list

Re: [HACKERS] Memory leak in PL/pgSQL function which CREATE/SELECT/DROP a temporary table

2013-06-19 Thread MauMau
From: Jeff Janes jeff.ja...@gmail.com On Tue, Jun 18, 2013 at 3:40 PM, MauMau maumau...@gmail.com wrote: Really? Would the catcache be polluted with entries for nonexistent tables? I'm surprised at this. I don't think it is necessary to speed up the query that fails with nonexistent tables

Re: backend hangs at immediate shutdown (Re: [HACKERS] Back-branch update releases coming in a couple weeks)

2013-06-20 Thread MauMau
, especially in the documentation and source code comments, as English is not my mother tongue. Regards MauMau -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers

Re: backend hangs at immediate shutdown (Re: [HACKERS] Back-branch update releases coming in a couple weeks)

2013-06-20 Thread MauMau
really name it SignalAlmostAllChildren(), could we .. I see. thank you. Regards MauMau -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers

Re: backend hangs at immediate shutdown (Re: [HACKERS] Back-branch update releases coming in a couple weeks)

2013-06-21 Thread MauMau
From: Alvaro Herrera alvhe...@2ndquadrant.com MauMau escribió: One concern is that umount would fail in such a situation because postgres has some open files on the filesystem, which is on the shared disk in case of traditional HA cluster. See my reply to Noah. If postmaster stays around

Re: backend hangs at immediate shutdown (Re: [HACKERS] Back-branch update releases coming in a couple weeks)

2013-06-21 Thread MauMau
waiting for backends to terminate after sending SIGQUIT. The state name is natural. I don't have strong objection to your idea if it makes the code cleaner and more understandable. Thank you very much. Regards MauMau -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make

Re: backend hangs at immediate shutdown (Re: [HACKERS] Back-branch update releases coming in a couple weeks)

2013-06-21 Thread MauMau
not be able to respond to the immediate shutdown request. What DBAs want from pg_ctl stop -mi is to shutdown the database server as immediately as possible. So I think 5 second is reasonable. Regards MauMau -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make

Re: backend hangs at immediate shutdown (Re: [HACKERS] Back-branch update releases coming in a couple weeks)

2013-06-21 Thread MauMau
shutdown. Some problems with killall -9 postgres are: 1. It's not available on Windows. 2. It may kill other database server instances running on the same machine. Regards MauMau -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http

Re: backend hangs at immediate shutdown (Re: [HACKERS] Back-branch update releases coming in a couple weeks)

2013-06-22 Thread MauMau
From: Alvaro Herrera alvhe...@2ndquadrant.com MauMau escribió: I thought of adding some new state of pmState for some reason (that might be the same as your idea). But I refrained from doing that, because pmState has already many states. I was afraid adding a new pmState value for this bug fix

Re: backend hangs at immediate shutdown (Re: [HACKERS] Back-branch update releases coming in a couple weeks)

2013-06-22 Thread MauMau
From: Robert Haas robertmh...@gmail.com On Fri, Jun 21, 2013 at 10:02 PM, MauMau maumau...@gmail.com wrote: I'm comfortable with 5 seconds. We are talking about the interval between sending SIGQUIT to the children and then sending SIGKILL to them. In most situations, the backends should

Re: backend hangs at immediate shutdown (Re: [HACKERS] Back-branch update releases coming in a couple weeks)

2013-06-25 Thread MauMau
escribió: On Sun, Jun 23, 2013 at 01:55:19PM +0900, MauMau wrote: the clients at the immediate shutdown. The code gets much simpler. In addition, it may be better that we similarly send SIGKILL in backend crash (FatalError) case, eliminate the use of SIGQUIT and remove quickdie() and other

Re: backend hangs at immediate shutdown (Re: [HACKERS] Back-branch update releases coming in a couple weeks)

2013-06-27 Thread MauMau
Hi, Alvaro san, From: Alvaro Herrera alvhe...@2ndquadrant.com MauMau escribió: Yeah, I see that --- after removing that early exit, there are unwanted messages. And in fact there are some signals sent that weren't previously sent. Clearly we need something here: if we're in immediate shutdown

[HACKERS] [9.3 doc fix] ECPG VAR command does not describe the actual specification

2013-06-27 Thread MauMau
this? Regards MauMau ecpg_var_doc.patch Description: Binary data -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers

Re: [HACKERS] pgsql_tmp and external sort

2013-07-02 Thread MauMau
/buffile.c, which in turn uses OpenTemporaryFile in src/backend/storage/file/fd.c. Regards MauMau -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers

[HACKERS] [9.3 bug fix] ECPG does not escape backslashes

2013-07-03 Thread MauMau
:\\command\\a.pgc This is necessary not only on Windows but also on UNIX/Linux. For your information, running gcc -E di\\r/a.c escapes \ and outputs the line: # 1 di\\r/a.c Regards MauMau ecpg_line.patch Description: Binary data -- Sent via pgsql-hackers mailing list (pgsql-hackers

Re: [HACKERS] [9.3 bug fix] ECPG does not escape backslashes

2013-07-05 Thread MauMau
From: Michael Meskes mes...@postgresql.org So that means MauMau was right and backslashes have to be escaped in filenames in #line directives, right? Apparently my examples were badly chosen as I didn't see an error no matter how many backslashes I had. Yes, the below examples shows the case

[HACKERS] [9.3 bug fix] backends emit hundreds of messages when statistics file is inaccessible

2013-07-08 Thread MauMau
seconds like this: WARNING: could not open statistics file /work/maumau/stats_tmp/pgstat.stat: Permission denied LOG: could not open temporary statistics file /work/maumau/stats_tmp/pgstat.tmp: Permission denied WARNING: could not open statistics file /work/maumau/stats_tmp/pgstat.stat

Re: [HACKERS] [9.3 bug fix] backends emit hundreds of messages when statistics file is inaccessible

2013-07-08 Thread MauMau
From: Tom Lane t...@sss.pgh.pa.us MauMau maumau...@gmail.com writes: If the directory specified by stats_temp_directory becomes inaccessible to postgres, enormous amount of WARNING messages are output. Well, yeah, because all of that functionality just broke. Not warning about it doesn't

[HACKERS] [bug fix] PITR corrupts the database cluster

2013-07-24 Thread MauMau
to take approach 1 even when we also does 2, because 1 is necessary when the backup and archive WAL are already taken with the current PostgreSQL anyway. Regards MauMau -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http

[HACKERS] DATE type output does not follow datestyle parameter

2013-07-24 Thread MauMau
-24-2013 (1 行) This does not follow the above statement in 8.5.2. This output is created by EncodeDateOnly() in src/backend/utils/adt/datetime.c. Regards MauMau -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http

Re: [HACKERS] install libpq.dll in bin directory on Windows / Cygwin

2013-07-25 Thread MauMau
them from lib? BTW, why is libpq.dll in lib necessary? For the above files? If so, we can remove libpq.dll from lib. Or, libpqwalreceiver.dll needs it? Regards MauMau -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http

[HACKERS] [9.3 bug] disk space in pg_xlog increases during archive recovery

2013-07-27 Thread MauMau
it in the next minor release? If you all are busy, I'll try to fix it, but give me advice how to do that. Regards MauMau -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers

Re: [HACKERS] install libpq.dll in bin directory on Windows / Cygwin

2013-07-30 Thread MauMau
installed in the bin directory and not in lib. Yes, it does need it. Just out of curiosity, what needs libpq.dll in lib? Regards MauMau -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql

Re: [HACKERS] [9.3 bug] disk space in pg_xlog increases during archive recovery

2013-07-30 Thread MauMau
the same recovery.conf for all cases). What do you think? Is there any other good condition to judge if cascading replication is used? Regards MauMau -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref

Re: [HACKERS] [9.3 bug] disk space in pg_xlog increases during archive recovery

2013-07-31 Thread MauMau
Hello, Fujii san, all, From: Fujii Masao masao.fu...@gmail.com On Sun, Jul 28, 2013 at 7:59 AM, MauMau maumau...@gmail.com wrote: Do you think this should be fixed? I think so. How should it be fixed? What about removing the restored archived file as soon as it's replayed if cascading

Re: [HACKERS] [9.3 bug] disk space in pg_xlog increases during archive recovery

2013-07-31 Thread MauMau
this patch or the previous one. Regards MauMau skip_wal_save_v2.patch Description: Binary data -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers

Re: [HACKERS] [9.3 bug] disk space in pg_xlog increases during archive recovery

2013-08-01 Thread MauMau
is definitely better because the standby server would not keep restored archive WAL in pg_xlog when cascading replication is not used. Otherwise, we have to take v2 patch. Could you choose either and commit it? Regards MauMau -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org

[HACKERS] [9.3 doc fix] clarification of Solaris versions

2013-08-21 Thread MauMau
, I suggest this tiny modification to avoid misunderstanding. In addition, I suggest removing references to OpenSolaris because OpenSolaris is already discontinued. I'm attaching one patch file. Could you commit this change? Regards MauMau doc_solaris_version.patch Description: Binary data

Re: [HACKERS] [9.3 doc fix] clarification of Solaris versions

2013-08-29 Thread MauMau
and completed regression test on Solaris 10. In addition, EnterpriseDB supports their product on Solaris, don't they? I appreciate it if you could commit this patch. Regards MauMau doc_solaris_version_v2.patch Description: Binary data -- Sent via pgsql-hackers mailing list (pgsql-hackers

Re: [HACKERS] Properly initialize negative/empty cache entries in relfilenodemap

2013-08-29 Thread MauMau
/message-id/214653D8DF574BFEAA6ED53E545E99E4@maumau Heiki helped to solve this and found that pg_statistic entries are left in CacheMemoryContext, but we have no idea where and how they are created and left. This seems difficult to me. Regards MauMau -- Sent via pgsql-hackers mailing list

Re: [HACKERS] [9.3 doc fix] clarification of Solaris versions

2013-09-04 Thread MauMau
From: Robert Haas robertmh...@gmail.com OK, patch committed and back-patched to 9.3. The patch file turned out to be sorta garbled. I'm not sure if a broken version of diff was used to generate this or whether MauMau hand-edited it after the fact, but the number of lines that were indicated

[HACKERS] [bug fix] strerror() returns ??? in a UTF-8/C database with LC_MESSAGES=non-ASCII

2013-09-06 Thread MauMau
or directory When talking with operating system experts, numeric errno values are sometimes more useful and easy to communicate than their corresponding strings. This is a closely related but a separate proposal. I want the first patch to be backported at least to 9.2. Regards MauMau

Re: [HACKERS] [bug fix] strerror() returns ??? in a UTF-8/C database with LC_MESSAGES=non-ASCII

2013-09-07 Thread MauMau
appreciated. Regards MauMau -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers

Re: [HACKERS] [bug fix] strerror() returns ??? in a UTF-8/C database with LC_MESSAGES=non-ASCII

2013-09-09 Thread MauMau
From: MauMau maumau...@gmail.com OK, I'll take this approach. That is: I did as Tom san suggested. Please review the attached patch. I chose as common errnos by selecting those which are used in PosttgreSQL source code out of the error numbers defined in POSIX 2013. As I said, lack

[HACKERS] Is this a correct recommendation for Solaris 10 kernel settings?

2013-09-09 Thread MauMau
are: project.max-shm-ids=(priv,32768,deny) project.max-sem-ids=(priv,4096,deny) project.max-msg-ids=(priv,4096,deny) I'm asking you because I found your proposal of the above article here: http://www.postgresql.org/message-id/4be9c10a.4040...@agliodbs.com Regards MauMau -- Sent via pgsql-hackers mailing

Re: [HACKERS] [bug fix] strerror() returns ??? in a UTF-8/C database with LC_MESSAGES=non-ASCII

2013-09-09 Thread MauMau
strerror_codeset.patch) for 9.4, and take the non-bind_textdomain_codeset approach for older releases. Regards MauMau -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers

Re: [HACKERS] [bug fix] strerror() returns ??? in a UTF-8/C database with LC_MESSAGES=non-ASCII

2013-09-09 Thread MauMau
. This is done at session start. Regards MauMau -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers

Re: [HACKERS] [bug fix] strerror() returns ??? in a UTF-8/C database with LC_MESSAGES=non-ASCII

2013-09-09 Thread MauMau
From: Peter Eisentraut pete...@gmx.net On 9/9/13 4:42 PM, MauMau wrote: 1. Take the approach that doesn't use bind_textdomain_codeset(libc) (i.e. the second version of errno_str.patch) for 9.4 and older releases. 2. Use bind_textdomain_codeset(libc) (i.e. take strerror_codeset.patch) for 9.4

Re: [HACKERS] [bug fix] strerror() returns ??? in a UTF-8/C database withLC_MESSAGES=non-ASCII

2013-09-10 Thread MauMau
to see this as a separate issue. Regards MauMau -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers

  1   2   3   4   >