pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
Fwd: Stalled post to pgsql-bugs
10+ messages / 8 participants
[nested] [flat]

* Fwd: Stalled post to pgsql-bugs
@ 2007-10-19 06:47 Ciprian Dorin Craciun <ciprian.craciun@gmail.com>
  2007-10-19 09:32 ` Stalled post to pgsql-bugs Ciprian Dorin Craciun <ciprian.craciun@gmail.com>
  0 siblings, 1 reply; 10+ messages in thread

From: Ciprian Dorin Craciun @ 2007-10-19 06:47 UTC (permalink / raw)
  To: pgsql-bugs

    Hello all!

    Almost two months ago I have posted a bug on the bug reporting
form that is available on the web page... (I forward here the email I
got in response.) It was related about the RETURNING feature available
for INSERT, UPDATE and DELETE, and the fact that I can not use it as
last statement is PL/SQL functions.

    But until now I saw no activity on this bug... How can I track it?
Has some one looked at it? Is it already fixed?

    I've monitored the release notes of every release from 8.2.5 and
saw nothing related to the issue.

    Could some one point me into the right direction? Or I could try
to fix it my self if someone could tell me where to start...

    Thank you all,
    Ciprian.


---------- Forwarded message ----------
From: pgsql-bugs-owner@postgresql.org <pgsql-bugs-owner@postgresql.org>
Date: Sep 3, 2007 8:13 PM
Subject: Stalled post to pgsql-bugs
To: Ciprian Dorin Craciun <ciprian.craciun@gmail.com>


Your message to pgsql-bugs has been delayed, and requires the approval
of the moderators, for the following reason(s):

The author ("Ciprian Dorin Craciun" <ciprian.craciun@gmail.com>)
  is not a member of any of the restrict_post groups.

If you do not wish the message to be posted, or have other concerns,
please send a message to the list owners at the following address:
  pgsql-bugs-owner@postgresql.org


---------- Forwarded message ----------
From: "Ciprian Dorin Craciun" <ciprian.craciun@gmail.com>
To: pgsql-bugs@postgresql.org
Date: Mon, 3 Sep 2007 17:13:40 GMT
Subject: BUG #3596: "insert ... returning *" not usable as last
statement in a function...

The following bug has been logged online:

Bug reference:      3596
Logged by:          Ciprian Dorin Craciun
Email address:      ciprian.craciun@gmail.com
PostgreSQL version: 8.2.4
Operating system:   Debian Etch (4.0)
Description:        "insert ... returning *" not usable as last statement in
a function...
Details:

I think the best explanation is the example just above...

The idea is that in 8.2 insert statement was modified by adding an returning
option, that modifies insert to behave also as a select statement by
returning all the rows inserted. But unfortunately this option can not be
used inside functions that return something as a last statement...

create table table1 ( field int );

create function function1 ( int ) returns table1 as $$
        insert into table1 values ($1) returning *;
$$ language sql;



^ permalink  raw  reply  [nested|flat] 10+ messages in thread

* Stalled post to pgsql-bugs
  2007-10-19 06:47 Fwd: Stalled post to pgsql-bugs Ciprian Dorin Craciun <ciprian.craciun@gmail.com>
@ 2007-10-19 09:32 ` Ciprian Dorin Craciun <ciprian.craciun@gmail.com>
  2007-10-19 10:52   ` Re: Stalled post to pgsql-bugs Pavel Stehule <pavel.stehule@gmail.com>
  0 siblings, 1 reply; 10+ messages in thread

From: Ciprian Dorin Craciun @ 2007-10-19 09:32 UTC (permalink / raw)
  To: pgsql-general@postgresql.org

    Hello all!

    Almost two months ago I have posted a bug on the bug reporting
form that is available on the web page... (I forward here the email I
got in response.) It was related about the RETURNING feature available
for INSERT, UPDATE and DELETE, and the fact that I can not use it as
last statement is PL/SQL functions.

    But until now I saw no activity on this bug... How can I track it?
Has some one looked at it? Is it already fixed?

    I've monitored the release notes of every release from 8.2.5 and
saw nothing related to the issue.

    Could some one point me into the right direction? Or I could try
to fix it my self if someone could tell me where to start...

    Thank you all,
    Ciprian.

    P.S.: I have also tried to send this same message directly to
psql-bugs mailing list but obtained the same message that the report
is stalled.


---------- Forwarded message ----------
From: pgsql-bugs-owner@postgresql.org <pgsql-bugs-owner@postgresql.org>
Date: Sep 3, 2007 8:13 PM
Subject: Stalled post to pgsql-bugs
To: Ciprian Dorin Craciun <ciprian.craciun@gmail.com>


Your message to pgsql-bugs has been delayed, and requires the approval
of the moderators, for the following reason(s):

The author ("Ciprian Dorin Craciun" <ciprian.craciun@gmail.com>)
  is not a member of any of the restrict_post groups.

If you do not wish the message to be posted, or have other concerns,
please send a message to the list owners at the following address:
  pgsql-bugs-owner@postgresql.org


---------- Forwarded message ----------
From: "Ciprian Dorin Craciun" <ciprian.craciun@gmail.com>
To: pgsql-bugs@postgresql.org
Date: Mon, 3 Sep 2007 17:13:40 GMT
Subject: BUG #3596: "insert ... returning *" not usable as last
statement in a function...

The following bug has been logged online:

Bug reference:      3596
Logged by:          Ciprian Dorin Craciun
Email address:      ciprian.craciun@gmail.com
PostgreSQL version: 8.2.4
Operating system:   Debian Etch (4.0)
Description:        "insert ... returning *" not usable as last statement in
a function...
Details:

I think the best explanation is the example just above...

The idea is that in 8.2 insert statement was modified by adding an returning
option, that modifies insert to behave also as a select statement by
returning all the rows inserted. But unfortunately this option can not be
used inside functions that return something as a last statement...

create table table1 ( field int );

create function function1 ( int ) returns table1 as $$
        insert into table1 values ($1) returning *;
$$ language sql;



^ permalink  raw  reply  [nested|flat] 10+ messages in thread

* Re: Stalled post to pgsql-bugs
  2007-10-19 06:47 Fwd: Stalled post to pgsql-bugs Ciprian Dorin Craciun <ciprian.craciun@gmail.com>
  2007-10-19 09:32 ` Stalled post to pgsql-bugs Ciprian Dorin Craciun <ciprian.craciun@gmail.com>
@ 2007-10-19 10:52   ` Pavel Stehule <pavel.stehule@gmail.com>
  2007-10-19 11:45     ` Re: Stalled post to pgsql-bugs Ciprian Dorin Craciun <ciprian.craciun@gmail.com>
  0 siblings, 1 reply; 10+ messages in thread

From: Pavel Stehule @ 2007-10-19 10:52 UTC (permalink / raw)
  To: Ciprian Dorin Craciun <ciprian.craciun@gmail.com>; +Cc: pgsql-general@postgresql.org

Hello

it's feature :(. And it isn't supported in 8.3 too

all info about unsupported features you can find in ToDo list
http://www.postgresql.org/docs/faqs.TODO.html

# Allow SQL-language functions to return results from RETURNING queries

http://archives.postgresql.org/pgsql-hackers/2006-10/msg00665.php
# Allow SQL-language functions to reference parameters by parameter name

Currently SQL-language functions can only refer to dollar parameters, e.g. $1

Regards
Pavel Stehule

2007/10/19, Ciprian Dorin Craciun <ciprian.craciun@gmail.com>:
>     Hello all!
>
>     Almost two months ago I have posted a bug on the bug reporting
> form that is available on the web page... (I forward here the email I
> got in response.) It was related about the RETURNING feature available
> for INSERT, UPDATE and DELETE, and the fact that I can not use it as
> last statement is PL/SQL functions.
>
>     But until now I saw no activity on this bug... How can I track it?
> Has some one looked at it? Is it already fixed?
>
>     I've monitored the release notes of every release from 8.2.5 and
> saw nothing related to the issue.
>
>     Could some one point me into the right direction? Or I could try
> to fix it my self if someone could tell me where to start...
>
>     Thank you all,
>     Ciprian.
>
>     P.S.: I have also tried to send this same message directly to
> psql-bugs mailing list but obtained the same message that the report
> is stalled.
>
>
> ---------- Forwarded message ----------
> From: pgsql-bugs-owner@postgresql.org <pgsql-bugs-owner@postgresql.org>
> Date: Sep 3, 2007 8:13 PM
> Subject: Stalled post to pgsql-bugs
> To: Ciprian Dorin Craciun <ciprian.craciun@gmail.com>
>
>
> Your message to pgsql-bugs has been delayed, and requires the approval
> of the moderators, for the following reason(s):
>
> The author ("Ciprian Dorin Craciun" <ciprian.craciun@gmail.com>)
>   is not a member of any of the restrict_post groups.
>
> If you do not wish the message to be posted, or have other concerns,
> please send a message to the list owners at the following address:
>   pgsql-bugs-owner@postgresql.org
>
>
> ---------- Forwarded message ----------
> From: "Ciprian Dorin Craciun" <ciprian.craciun@gmail.com>
> To: pgsql-bugs@postgresql.org
> Date: Mon, 3 Sep 2007 17:13:40 GMT
> Subject: BUG #3596: "insert ... returning *" not usable as last
> statement in a function...
>
> The following bug has been logged online:
>
> Bug reference:      3596
> Logged by:          Ciprian Dorin Craciun
> Email address:      ciprian.craciun@gmail.com
> PostgreSQL version: 8.2.4
> Operating system:   Debian Etch (4.0)
> Description:        "insert ... returning *" not usable as last statement in
> a function...
> Details:
>
> I think the best explanation is the example just above...
>
> The idea is that in 8.2 insert statement was modified by adding an returning
> option, that modifies insert to behave also as a select statement by
> returning all the rows inserted. But unfortunately this option can not be
> used inside functions that return something as a last statement...
>
> create table table1 ( field int );
>
> create function function1 ( int ) returns table1 as $$
>         insert into table1 values ($1) returning *;
> $$ language sql;
>
> ---------------------------(end of broadcast)---------------------------
> TIP 4: Have you searched our list archives?
>
>                http://archives.postgresql.org/
>



^ permalink  raw  reply  [nested|flat] 10+ messages in thread

* Re: Stalled post to pgsql-bugs
  2007-10-19 06:47 Fwd: Stalled post to pgsql-bugs Ciprian Dorin Craciun <ciprian.craciun@gmail.com>
  2007-10-19 09:32 ` Stalled post to pgsql-bugs Ciprian Dorin Craciun <ciprian.craciun@gmail.com>
  2007-10-19 10:52   ` Re: Stalled post to pgsql-bugs Pavel Stehule <pavel.stehule@gmail.com>
@ 2007-10-19 11:45     ` Ciprian Dorin Craciun <ciprian.craciun@gmail.com>
  0 siblings, 0 replies; 10+ messages in thread

From: Ciprian Dorin Craciun @ 2007-10-19 11:45 UTC (permalink / raw)
  To: Pavel Stehule <pavel.stehule@gmail.com>; +Cc: pgsql-general@postgresql.org

    Thanks! I thought that my bug was ignored...

    It would be nice to have RETURNING used in PL/SQL functions...
Without named parameters I can live -- they are just syntactic sugar
-- but RETURNING can not be worked around...

    Ciprian.


On 10/19/07, Pavel Stehule <pavel.stehule@gmail.com> wrote:
> Hello
>
> it's feature :(. And it isn't supported in 8.3 too
>
> all info about unsupported features you can find in ToDo list
> http://www.postgresql.org/docs/faqs.TODO.html
>
> # Allow SQL-language functions to return results from RETURNING queries
>
> http://archives.postgresql.org/pgsql-hackers/2006-10/msg00665.php
> # Allow SQL-language functions to reference parameters by parameter name
>
> Currently SQL-language functions can only refer to dollar parameters, e.g. $1
>
> Regards
> Pavel Stehule
>
> 2007/10/19, Ciprian Dorin Craciun <ciprian.craciun@gmail.com>:
> >     Hello all!
> >
> >     Almost two months ago I have posted a bug on the bug reporting
> > form that is available on the web page... (I forward here the email I
> > got in response.) It was related about the RETURNING feature available
> > for INSERT, UPDATE and DELETE, and the fact that I can not use it as
> > last statement is PL/SQL functions.
> >
> >     But until now I saw no activity on this bug... How can I track it?
> > Has some one looked at it? Is it already fixed?
> >
> >     I've monitored the release notes of every release from 8.2.5 and
> > saw nothing related to the issue.
> >
> >     Could some one point me into the right direction? Or I could try
> > to fix it my self if someone could tell me where to start...
> >
> >     Thank you all,
> >     Ciprian.
> >
> >     P.S.: I have also tried to send this same message directly to
> > psql-bugs mailing list but obtained the same message that the report
> > is stalled.
> >
> >
> > ---------- Forwarded message ----------
> > From: pgsql-bugs-owner@postgresql.org <pgsql-bugs-owner@postgresql.org>
> > Date: Sep 3, 2007 8:13 PM
> > Subject: Stalled post to pgsql-bugs
> > To: Ciprian Dorin Craciun <ciprian.craciun@gmail.com>
> >
> >
> > Your message to pgsql-bugs has been delayed, and requires the approval
> > of the moderators, for the following reason(s):
> >
> > The author ("Ciprian Dorin Craciun" <ciprian.craciun@gmail.com>)
> >   is not a member of any of the restrict_post groups.
> >
> > If you do not wish the message to be posted, or have other concerns,
> > please send a message to the list owners at the following address:
> >   pgsql-bugs-owner@postgresql.org
> >
> >
> > ---------- Forwarded message ----------
> > From: "Ciprian Dorin Craciun" <ciprian.craciun@gmail.com>
> > To: pgsql-bugs@postgresql.org
> > Date: Mon, 3 Sep 2007 17:13:40 GMT
> > Subject: BUG #3596: "insert ... returning *" not usable as last
> > statement in a function...
> >
> > The following bug has been logged online:
> >
> > Bug reference:      3596
> > Logged by:          Ciprian Dorin Craciun
> > Email address:      ciprian.craciun@gmail.com
> > PostgreSQL version: 8.2.4
> > Operating system:   Debian Etch (4.0)
> > Description:        "insert ... returning *" not usable as last statement in
> > a function...
> > Details:
> >
> > I think the best explanation is the example just above...
> >
> > The idea is that in 8.2 insert statement was modified by adding an returning
> > option, that modifies insert to behave also as a select statement by
> > returning all the rows inserted. But unfortunately this option can not be
> > used inside functions that return something as a last statement...
> >
> > create table table1 ( field int );
> >
> > create function function1 ( int ) returns table1 as $$
> >         insert into table1 values ($1) returning *;
> > $$ language sql;
> >
> > ---------------------------(end of broadcast)---------------------------
> > TIP 4: Have you searched our list archives?
> >
> >                http://archives.postgresql.org/



^ permalink  raw  reply  [nested|flat] 10+ messages in thread

* Stalled post to pgsql-bugs
@ 2009-08-14 05:35 Saneera Gunasekara <saneera@apturion.com>
  2009-08-14 17:01 ` Re: Stalled post to pgsql-bugs Robert Haas <robertmhaas@gmail.com>
  0 siblings, 1 reply; 10+ messages in thread

From: Saneera Gunasekara @ 2009-08-14 05:35 UTC (permalink / raw)
  To: security@postgresql.org; pgsql-bugs

Dear Sir

I have got the following error message when connecting postgres from
postgres admin connecting form the localhost
(only special thing in machine configuration is attached the 2 network cards
to the installation machine)

could not connect to server: Connection refused (0x0000274D/10061)
Is the server running on host "127.0.0.1" and

accepting TCP/IP connections on port 5432?

If you encounter this message, please check if the server you're trying to
contact is

actually running PostgreSQL on the given port.

Test if you have network connectivity from your client to the server host
using ping or

equivalent tools. Is your network / VPN / SSH tunnel / firewall configured
correctly?

You probably have some low level network connectivity problems (e.g.
firewall

please let me how to resolve this problem permanently we have got this error
message time by time but not always run the postgresSQL service using the
.\postgres account when start up the
machine

Thanks

^ permalink  raw  reply  [nested|flat] 10+ messages in thread

* Re: Stalled post to pgsql-bugs
  2009-08-14 05:35 Stalled post to pgsql-bugs Saneera Gunasekara <saneera@apturion.com>
@ 2009-08-14 17:01 ` Robert Haas <robertmhaas@gmail.com>
  0 siblings, 0 replies; 10+ messages in thread

From: Robert Haas @ 2009-08-14 17:01 UTC (permalink / raw)
  To: Saneera Gunasekara <saneera@apturion.com>; +Cc: security@postgresql.org; pgsql-bugs

On Fri, Aug 14, 2009 at 1:35 AM, Saneera Gunasekara<saneera@apturion.com> wrote:
>
> Dear Sir
>
> I have got the following error message when connecting postgres from
> postgres admin connecting form the localhost
> (only special thing in machine configuration is attached the 2 network cards
> to the installation machine)
>
> could not connect to server: Connection refused (0x0000274D/10061)
> Is the server running on host "127.0.0.1" and
>
> accepting TCP/IP connections on port 5432?
>
> If you encounter this message, please check if the server you're trying to
> contact is
>
> actually running PostgreSQL on the given port.
>
> Test if you have network connectivity from your client to the server host
> using ping or
>
> equivalent tools. Is your network / VPN / SSH tunnel / firewall configured
> correctly?
>
> You probably have some low level network connectivity problems (e.g.
> firewall
>
> please let me how to resolve this problem permanently we have got this error
> message time by time but not always run the postgresSQL service using the
> .\postgres account when start up the
> machine

Maybe you should follow the directions given in the error message.
They are fairly detailed.  If you can't figure it out, you could ask
for help on pgsql-general or pgsql-novice, but you're going to need to
provide a lot more information about what you tried and what happened.
 In any event, this is neither a bug nor a security issue, so I don't
think you should be sending it to these lists.

...Robert



^ permalink  raw  reply  [nested|flat] 10+ messages in thread

* Re: Stalled post to pgsql-bugs
@ 2010-07-30 02:20 amos <amosleaf@gmail.com>
  0 siblings, 0 replies; 10+ messages in thread

From: amos @ 2010-07-30 02:20 UTC (permalink / raw)
  To: pgsql-bugs

Hi:
I met a problem about postgres, please check the info belows, thanks in
advance.

>
> PostgreSQL version: 8.3.8-1
> Operating system:   windows 2000
> Description:        postgresql crash always
>


> Details:
>
> My program will use postgresal database, after start my program ,I find it
> hangs always, so I check the db log,and find these exception:
>
> 2010-07-27 14:08:22 EDT LOG:  loaded library
> "$libdir/plugins/plugin_debugger.dll"
> 2010-07-27 14:08:22 EDT LOG:  loaded library
> "$libdir/plugins/plugin_debugger.dll"
> 2010-07-27 14:08:22 EDT LOG:  CreateProcess call failed: A blocking
> operation was interrupted by a call to WSACancelBlockingCall.
>
>         (error code 5)
> 2010-07-27 14:08:22 EDT LOG:  could not fork new process for connection: A
> blocking operation was interrupted by a call to WSACancelBlockingCall.
>
>
> 2010-07-27 14:08:23 EDT LOG:  CreateProcess call failed: A blocking
> operation was interrupted by a call to WSACancelBlockingCall.
>
>         (error code 5)
> 2010-07-27 14:08:23 EDT LOG:  could not fork new process for connection: A
> blocking operation was interrupted by a call to WSACancelBlockingCall.
>
> ...(fill of this exception)
>
>

-- 
Best Regard

^ permalink  raw  reply  [nested|flat] 10+ messages in thread

* Re: Stalled post to pgsql-bugs
@ 2013-07-04 18:41 Chad Wagner <chad.wagner@gmail.com>
  0 siblings, 0 replies; 10+ messages in thread

From: Chad Wagner @ 2013-07-04 18:41 UTC (permalink / raw)
  To: pgsql-bugs

After further testing, this test case should be refined to throw
NO_DATA_FOUND errors from the INTO STRICT clause to produce the memory leak.

In pl_exec.c, exec_stmt_execsql does not free the SPI_tuptable by calling
SPI_freetuptable before the ereport.  Attached is a patch to 9.2-STABLE
that seems to resolve it.

-- 
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs

Attachments:

pl_exec.diff (application/octet-stream, 892B) download diff --git a/src/pl/plpgsql/src/pl_exec.c b/src/pl/plpgsql/src/pl_exec.c index fbc8e78..371680a 100644 --- a/src/pl/plpgsql/src/pl_exec.c +++ b/src/pl/plpgsql/src/pl_exec.c @@ -3170,18 +3170,24 @@ exec_stmt_execsql(PLpgSQL_execstate *estate, if (n == 0) { if (stmt->strict) + { + SPI_freetuptable(SPI_tuptable); ereport(ERROR, (errcode(ERRCODE_NO_DATA_FOUND), errmsg("query returned no rows"))); + } /* set the target to NULL(s) */ exec_move_row(estate, rec, row, NULL, tuptab->tupdesc); } else { if (n > 1 && (stmt->strict || stmt->mod_stmt)) + { + SPI_freetuptable(SPI_tuptable); ereport(ERROR, (errcode(ERRCODE_TOO_MANY_ROWS), errmsg("query returned more than one row"))); + } /* Put the first result row into the target */ exec_move_row(estate, rec, row, tuptab->vals[0], tuptab->tupdesc); }
valgrind.out (application/octet-stream, 32.8K) download ^ permalink raw reply [nested|flat] 10+ messages in thread

* Re: Stalled post to pgsql-bugs
@ 2015-07-23 15:41 Sushant Sinha <sushant@indiankanoon.com>
  2015-07-23 15:59 ` Re: Stalled post to pgsql-bugs Kevin Grittner <kgrittn@ymail.com>
  0 siblings, 1 reply; 10+ messages in thread

From: Sushant Sinha @ 2015-07-23 15:41 UTC (permalink / raw)
  To: pgsql-bugs

Ok. There is a problem with the patches that went in between Postgres
9.4.3->9.4.4

I downgraded to Postgres 9.4.3 and everythig is normal. "Actual disk
writes" in iostat is pretty much as "Total disk writes" (between 50-100
Kbps and not in Mbps). "vmstat 1" also shows no excessive disk writes.

I am using postgres 9.4.3 on Gentoo linux along with uwsgi, python 2.7 and
nginx.

-Sushant.

On Thu, Jul 23, 2015 at 10:27 AM, <pgsql-bugs-owner@postgresql.org> wrote:

> Your message to pgsql-bugs has been delayed, and requires the approval
> of the moderators, for the following reason(s):
>
> The author (sushant@indiankanoon.com)
>   is not a member of any of the restrict_post groups.
>
> If you do not wish the message to be posted, or have other concerns,
> please send a message to the list owners at the following address:
>   pgsql-bugs-owner@postgresql.org
>
>
> ---------- Forwarded message ----------
> From: sushant@indiankanoon.com
> To: pgsql-bugs@postgresql.org
> Cc:
> Date: Thu, 23 Jul 2015 04:56:17 +0000
> Subject: BUG #13515: Much higher disk writes after postgres upgrade
> 9.4.3->9.4.4
> The following bug has been logged on the website:
>
> Bug reference:      13515
> Logged by:          Sushant Sinha
> Email address:      sushant@indiankanoon.com
> PostgreSQL version: 9.4.4
> Operating system:   Linux
> Description:
>
> After upgrade from postgres 9.4.3 to 9.4.4 I am seeing constant disk writes
> of 4-8MB/s in the background in production. I verified it using iotop and
> vmstat. iotop shows "Total Disk Write" to be minuscule (like 10-100Kbps).
> It
> is affecting runtime performance. I never noticed this issue with postgres
> 9.4.3.
>
> I increased the shared buffers from 128MB to 1GB and still didn't see any
> benefit.
>
> The website (http://indiankanoon.org) mostly uses text search with gin
> index
> and some logging of click through data. The main database is replicated
> using "streaming asynchronous replication".
>
> I am going to downgrade it to 9.4.3 to see if the upgrade was the real
> problem. But just wanted to check if anyone else noticed it.
>
>
>

^ permalink  raw  reply  [nested|flat] 10+ messages in thread

* Re: Stalled post to pgsql-bugs
  2015-07-23 15:41 Re: Stalled post to pgsql-bugs Sushant Sinha <sushant@indiankanoon.com>
@ 2015-07-23 15:59 ` Kevin Grittner <kgrittn@ymail.com>
  0 siblings, 0 replies; 10+ messages in thread

From: Kevin Grittner @ 2015-07-23 15:59 UTC (permalink / raw)
  To: Sushant Sinha <sushant@indiankanoon.com>; pgsql-bugs

Sushant Sinha <sushant@indiankanoon.com> wrote:
> On Thu, Jul 23, 2015 at 10:27 AM, <pgsql-bugs-owner@postgresql.org> wrote:

>> After upgrade from postgres 9.4.3 to 9.4.4 I am seeing constant disk writes
>> of 4-8MB/s in the background in production. I verified it using iotop and
>> vmstat. iotop shows "Total Disk Write" to be minuscule (like 10-100Kbps). It
>> is affecting runtime performance. I never noticed this issue with postgres
>> 9.4.3.
>>
>> I increased the shared buffers from 128MB to 1GB and still didn't see any
>> benefit.
>>
>> The website (http://indiankanoon.org) mostly uses text search with gin index
>> and some logging of click through data. The main database is replicated
>> using "streaming asynchronous replication".
>>
>> I am going to downgrade it to 9.4.3 to see if the upgrade was the real
>> problem. But just wanted to check if anyone else noticed it.

> Ok. There is a problem with the patches that went in between
> Postgres 9.4.3->9.4.4
>
> I downgraded to Postgres 9.4.3 and everythig is normal. "Actual
> disk writes" in iostat is pretty much as "Total disk writes"
> (between 50-100 Kbps and not in Mbps). "vmstat 1" also shows no
> excessive disk writes.

Did you notice whether it was an autovacuum process causing the 
additional I/O in 9.4.4?  There were some bugs in 9.4.3 that failed 
to vacuum away old multi-transaction tracking structures in a 
timely fashion, causing data loss and database corruption.  Once 
you upgraded a background task was probably trying to make up for 
the lack of timely maintenance, so that you would not experience 
those problems.  Downgrading may be a little faster for a little 
while, but you're almost certain to regret doing it very soon....

--
Kevin Grittner
EDB: http://www.enterprisedb.com
The Enterprise PostgreSQL Company


-- 
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs



^ permalink  raw  reply  [nested|flat] 10+ messages in thread


end of thread, other threads:[~2015-07-23 15:59 UTC | newest]

Thread overview: 10+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2007-10-19 06:47 Fwd: Stalled post to pgsql-bugs Ciprian Dorin Craciun <ciprian.craciun@gmail.com>
2007-10-19 09:32 ` Ciprian Dorin Craciun <ciprian.craciun@gmail.com>
2007-10-19 10:52   ` Pavel Stehule <pavel.stehule@gmail.com>
2007-10-19 11:45     ` Ciprian Dorin Craciun <ciprian.craciun@gmail.com>
2009-08-14 05:35 Stalled post to pgsql-bugs Saneera Gunasekara <saneera@apturion.com>
2009-08-14 17:01 ` Robert Haas <robertmhaas@gmail.com>
2010-07-30 02:20 Re: Stalled post to pgsql-bugs amos <amosleaf@gmail.com>
2013-07-04 18:41 Re: Stalled post to pgsql-bugs Chad Wagner <chad.wagner@gmail.com>
2015-07-23 15:41 Re: Stalled post to pgsql-bugs Sushant Sinha <sushant@indiankanoon.com>
2015-07-23 15:59 ` Kevin Grittner <kgrittn@ymail.com>

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox