Re: [GENERAL] pg_dumping extensions having sequences with 9.6beta3

2016-07-26 Thread Noah Misch
On Sat, Jul 23, 2016 at 01:40:01PM +0900, Michael Paquier wrote: > On Fri, Jul 22, 2016 at 6:27 PM, Philippe BEAUDOIN wrote: > > I am currently playing with extensions. And I found a strange behaviour > > change with 9.6beta2 and 3 when pg_dumping a database with an extension > > having sequences.

Re: [HACKERS] [GENERAL] 9.4.1 -> 9.4.2 problem: could not access status of transaction 1

2015-06-10 Thread Noah Misch
On Mon, Jun 08, 2015 at 03:15:04PM +0200, Andres Freund wrote: > One more thing: > Our testing infrastructure sucks. Without writing C code it's basically > impossible to test wraparounds and such. Even if not particularly useful > for non-devs, I really think we should have functions for creating

Re: [GENERAL] 9.4.1 -> 9.4.2 problem: could not access status of transaction 1

2015-06-04 Thread Noah Misch
On Thu, Jun 04, 2015 at 05:29:51PM -0400, Robert Haas wrote: > Here's a new version with some more fixes and improvements: I read through this version and found nothing to change. I encourage other hackers to study the patch, though. The surrounding code is challenging. > With this version, I'm

Re: [GENERAL] 9.4.1 -> 9.4.2 problem: could not access status of transaction 1

2015-06-03 Thread Noah Misch
On Wed, Jun 03, 2015 at 04:53:46PM -0400, Robert Haas wrote: > So here's a patch taking a different approach. In this approach, if > the multixact whose members we want to look up doesn't exist, we don't > use a later one (that might or might not be valid). Instead, we > attempt to cope with the

Re: [GENERAL] 9.4.1 -> 9.4.2 problem: could not access status of transaction 1

2015-06-02 Thread Noah Misch
On Tue, Jun 02, 2015 at 11:16:22AM -0400, Robert Haas wrote: > On Tue, Jun 2, 2015 at 1:21 AM, Noah Misch wrote: > > On Mon, Jun 01, 2015 at 02:06:05PM -0400, Robert Haas wrote: > > Granted. Would it be better to update both functions at the same time, and > > perhaps to ma

Re: [GENERAL] 9.4.1 -> 9.4.2 problem: could not access status of transaction 1

2015-06-01 Thread Noah Misch
On Mon, Jun 01, 2015 at 02:06:05PM -0400, Robert Haas wrote: > On Mon, Jun 1, 2015 at 12:46 AM, Noah Misch wrote: > > On Fri, May 29, 2015 at 03:08:11PM -0400, Robert Haas wrote: > >> SetMultiXactIdLimit() bracketed certain parts of its > >> logic with if (!InRecov

Re: [GENERAL] 9.4.1 -> 9.4.2 problem: could not access status of transaction 1

2015-05-31 Thread Noah Misch
On Fri, May 29, 2015 at 10:37:57AM +1200, Thomas Munro wrote: > On Fri, May 29, 2015 at 7:56 AM, Robert Haas wrote: > > - There's a third possible problem related to boundary cases in > > SlruScanDirCbRemoveMembers, but I don't understand that one well > > enough to explain it. Maybe Thomas can j

Re: [GENERAL] 9.4.1 -> 9.4.2 problem: could not access status of transaction 1

2015-05-31 Thread Noah Misch
Incomplete review, done in a relative rush: On Fri, May 29, 2015 at 03:08:11PM -0400, Robert Haas wrote: > OK, here's a patch. Actually two patches, differing only in > whitespace, for 9.3 and for master (ha!). I now think that the root > of the problem here is that DetermineSafeOldestOffset() a

Re: [GENERAL] "interval hour to minute" or "interval day to minute"

2011-06-18 Thread Noah Misch
On Thu, Jun 16, 2011 at 06:07:50PM -0400, Bruce Momjian wrote: > Noah Misch wrote: > > On Sun, Apr 17, 2011 at 04:55:51PM +0100, Jack Douglas wrote: > > > I discovered the 'fields' option of 'interval', but i can't figure out > > > from the

[GENERAL] Re: One-off attempt at catalog hacking to turn bytea column into text

2011-05-11 Thread Noah Misch
On Tue, May 10, 2011 at 04:31:37PM -0400, Vlad Romascanu wrote: > As a one-off attempt to change a large table's 'bytea' column to > 'text' with minimal I/O (where the 'bytea' contents is already valid > UTF8 and the database encoding is also UTF8, and the column is not > part of any index or anyth

Re: [GENERAL] "interval hour to minute" or "interval day to minute"

2011-05-09 Thread Noah Misch
On Sun, Apr 17, 2011 at 04:55:51PM +0100, Jack Douglas wrote: > I discovered the 'fields' option of 'interval', but i can't figure out > from the docs how it is supposed to work. Are "hour to minute" and "day > to minute" really the same thing? And if not, in what circumstances are > they tre

[GENERAL] Re: Column storage (EXTERNAL/EXTENDED) settings for bytea/text column

2011-04-21 Thread Noah Misch
On Mon, Apr 11, 2011 at 03:19:23PM -0700, Joel Stevenson wrote: > I'm trying to do some comparisons between the EXTERNAL and the EXTENDED > storage methods on a bytea column and from the outside the setting doesn't > appear to affect the value stored on initial insert, but perhaps I'm looking >

Re: [GENERAL] Handling bytea field in partition trigger function

2011-04-10 Thread Noah Misch
On Fri, Apr 01, 2011 at 04:09:00PM -0700, Doug Johnson wrote: > I'm trying to partition a table that has a btyea field used to store pdf > data. Basically the procedure filters by date, and creates a new table every > month. I'm having problems with the executed sql string that moves the data > int

Re: [GENERAL] Transaction wraparound vacuum synchronicity

2011-04-10 Thread Noah Misch
On Wed, Mar 09, 2011 at 10:52:25AM +, Michael Graham wrote: > I have a database with a number of tables that are partitioned monthly, > after that the tables are mostly read only (on rare occasions we may > delete from a table but normally we just drop the partitions). Recently > I've noticed

[GENERAL] Re: Why security-definer functions are executable by public by default?

2011-04-06 Thread Noah Misch
On Tue, Apr 05, 2011 at 08:41:21AM +0200, hubert depesz lubaczewski wrote: > was pointed to the fact that security definer functions have the same > default privileges as normal functions in the same language - i.e. if > the language is trusted - public has the right to execute them. That default

Re: [GENERAL] autovacuum issue after upgrade to 9.0.1

2011-03-22 Thread Noah Misch
On Tue, Mar 15, 2011 at 02:38:37PM -0400, George Woodring wrote: > We recently upgraded from 8.3.something to 9.0.1. With 9.0.1, we have a > huge spike in vacuums every 8 days only on one of our DB servers. Is the one affected DB server part of a group of servers you would expect to behave simil

Re: [GENERAL] Huge spikes in number of connections doing "PARSE"

2011-03-14 Thread Noah Misch
On Mon, Mar 14, 2011 at 10:21:27PM +0100, Martijn van Oosterhout wrote: > On Mon, Mar 14, 2011 at 07:49:46PM +0100, hubert depesz lubaczewski wrote: > > These 60 were summarized, and output is available here: > > http://www.depesz.com/various/locks.summary.txt > > > > as you can seem, in 48 cases

Re: [GENERAL] Huge spikes in number of connections doing "PARSE"

2011-03-14 Thread Noah Misch
On Mon, Mar 14, 2011 at 07:49:46PM +0100, hubert depesz lubaczewski wrote: > I wrote a script, that every 15 seconds, checks system for Pg backends in > "PARSE" state. If there are more than 100 of them, script randombly chooses > 10 of them, and runs "gdb -batch -quiet -ex=bt /usr/bin/postgres PID

Re: [GENERAL] Huge spikes in number of connections doing "PARSE"

2011-03-11 Thread Noah Misch
On Fri, Mar 11, 2011 at 04:13:52PM +0100, hubert depesz lubaczewski wrote: > On Fri, Mar 11, 2011 at 03:03:55AM -0500, Noah Misch wrote: > > On Wed, Mar 09, 2011 at 09:38:07PM +0100, hubert depesz lubaczewski wrote: > > > So. every now and then (couple of times per day at mos

Re: [GENERAL] Huge spikes in number of connections doing "PARSE"

2011-03-11 Thread Noah Misch
On Wed, Mar 09, 2011 at 09:38:07PM +0100, hubert depesz lubaczewski wrote: > So. every now and then (couple of times per day at most). I see hundreds > (800-900) of connections in "PARSE" state. > > I did notice one thing. > > we do log output of ps axo > user,pid,ppid,pgrp,%cpu,%mem,rss,lstart,

Re: [GENERAL] 9.1 - rewrite less alter table?

2011-03-08 Thread Noah Misch
On Sat, Mar 05, 2011 at 12:55:18PM +0100, hubert depesz lubaczewski wrote: > perhaps I misunderstood something from commits, but I assumed that in > 9.1 this operation shouldn't rewrite the table: > > CREATE TABLE test ( x varchar(16) ); > insert into test select i::text from generate_series(1,100

Re: [GENERAL] why does the toast table exist?

2011-02-16 Thread Noah Misch
On Wed, Feb 16, 2011 at 02:36:03PM +0600, AI Rumman wrote: > I have no idea why the TOAST table exists for audit_trial table. > > \d audit_trial > Table "public.audit_trial" >Column |Type | Modifiers > +-+---

[GENERAL] Changing pg_attribute.attislocal

2010-07-22 Thread Noah Misch
Over time, I mistakenly did something like this: CREATE TABLE a (); CREATE TABLE b () INHERITS(a); ALTER TABLE b ADD col int; ALTER TABLE a ADD col int; where I should have left out the third statement. Not a great loss, the only consequence I've observed being pg_attribute.attislocal = true, so

[GENERAL] 9.0 VACUUM FULL vs. ALTER TABLE?

2010-03-05 Thread Noah Misch
I understand that 9.0 will have a new implementation of VACUUM FULL that follows a rewrite strategy like CLUSTER or ALTER TABLE. What differences will remain between VACUUM FULL and a no-op ALTER TABLE that rewrites? Will there remain situations in which to prefer the latter, or will it essential