pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
BUG #13645: pg_basebackup backup hash index & unlogged table
3+ messages / 3 participants
[nested] [flat]

* BUG #13645: pg_basebackup backup hash index & unlogged table
@ 2015-09-28 06:15 digoal@126.com
  2015-10-05 01:37 ` Re: BUG #13645: pg_basebackup backup hash index & unlogged table Bruce Momjian <bruce@momjian.us>
  0 siblings, 1 reply; 3+ messages in thread

From: digoal@126.com @ 2015-09-28 06:15 UTC (permalink / raw)
  To: pgsql-bugs

The following bug has been logged on the website:

Bug reference:      13645
Logged by:          digoal
Email address:      digoal@126.com
PostgreSQL version: 9.4.4
Operating system:   CentOS 6.x x64
Description:        

HI,
   Hash index and unlogged table don't generate XLOG record, when we use
pg_basebackup's backup datafile & xlog archive recovery database, unlogged
table datafile will purged, and hash index also has unconsistent data page.
  Why pg_basebackup not filter the hash index datafile & unlogged table
datafile, these file waste net band and backup file's capcity. 


-- 
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] 3+ messages in thread

* Re: BUG #13645: pg_basebackup backup hash index & unlogged table
  2015-09-28 06:15 BUG #13645: pg_basebackup backup hash index & unlogged table digoal@126.com
@ 2015-10-05 01:37 ` Bruce Momjian <bruce@momjian.us>
  2015-10-05 03:00   ` Re: BUG #13645: pg_basebackup backup hash index & unlogged table Michael Paquier <michael.paquier@gmail.com>
  0 siblings, 1 reply; 3+ messages in thread

From: Bruce Momjian @ 2015-10-05 01:37 UTC (permalink / raw)
  To: digoal@126.com; +Cc: pgsql-bugs

On Mon, Sep 28, 2015 at 06:15:24AM +0000, digoal@126.com wrote:
> The following bug has been logged on the website:
> 
> Bug reference:      13645
> Logged by:          digoal
> Email address:      digoal@126.com
> PostgreSQL version: 9.4.4
> Operating system:   CentOS 6.x x64
> Description:        
> 
> HI,
>    Hash index and unlogged table don't generate XLOG record, when we use
> pg_basebackup's backup datafile & xlog archive recovery database, unlogged
> table datafile will purged, and hash index also has unconsistent data page.
>   Why pg_basebackup not filter the hash index datafile & unlogged table
> datafile, these file waste net band and backup file's capcity. 

We will issue a warning in 9.5 when hash indexes are created.  I am not
sure why we don't filter out hash indexed and unlogged tables.

-- 
  Bruce Momjian  <bruce@momjian.us>        http://momjian.us
  EnterpriseDB                             http://enterprisedb.com

+ As you are, so once was I. As I am, so you will be. +
+ Roman grave inscription                             +


-- 
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] 3+ messages in thread

* Re: BUG #13645: pg_basebackup backup hash index & unlogged table
  2015-09-28 06:15 BUG #13645: pg_basebackup backup hash index & unlogged table digoal@126.com
  2015-10-05 01:37 ` Re: BUG #13645: pg_basebackup backup hash index & unlogged table Bruce Momjian <bruce@momjian.us>
@ 2015-10-05 03:00   ` Michael Paquier <michael.paquier@gmail.com>
  0 siblings, 0 replies; 3+ messages in thread

From: Michael Paquier @ 2015-10-05 03:00 UTC (permalink / raw)
  To: Bruce Momjian <bruce@momjian.us>; +Cc: pgsql-bugs

On Mon, Oct 5, 2015 at 10:37 AM, Bruce Momjian <bruce@momjian.us> wrote:
> On Mon, Sep 28, 2015 at 06:15:24AM +0000, digoal@126.com wrote:
>>    Hash index and unlogged table don't generate XLOG record, when we use
>> pg_basebackup's backup datafile & xlog archive recovery database, unlogged
>> table datafile will purged, and hash index also has unconsistent data page.
>>   Why pg_basebackup not filter the hash index datafile & unlogged table
>> datafile, these file waste net band and backup file's capcity.
>
> We will issue a warning in 9.5 when hash indexes are created.  I am not
> sure why we don't filter out hash indexed and unlogged tables.

basebackup.c does not have much logic yet to see if the file it is
working on is a relation file (this already exists in
filemap.c@isRelDataFile in pg_rewind), and a WAL sender is not
connected to a particular database, which would be needed for pg_class
lookups, so it seems to me that this would be a complicated
infrastructure for a niche use case. Note to mention that perhaps, in
a perhaps-distant day, hash indexes will have WAL support.
-- 
Michael


-- 
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] 3+ messages in thread


end of thread, other threads:[~2015-10-05 03:00 UTC | newest]

Thread overview: 3+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2015-09-28 06:15 BUG #13645: pg_basebackup backup hash index & unlogged table digoal@126.com
2015-10-05 01:37 ` Bruce Momjian <bruce@momjian.us>
2015-10-05 03:00   ` Michael Paquier <michael.paquier@gmail.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