Re: pg_internal.init and an index file have the same inode

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Daniel Farina <daniel(at)heroku(dot)com>
Cc: pgsql-hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: pg_internal.init and an index file have the same inode
Date: 2012-01-04 02:28:16
Message-ID: 2087.1325644096@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Daniel Farina <daniel(at)heroku(dot)com> writes:
> And, even more interestingly,

> $ stat 16587.8 pg_internal.init
> File: `16587.8'
> Size: 98532 Blocks: 200 IO Block: 4096 regular file
> Device: fe00h/65024d Inode: 1073741952 Links: 1
> Access: (0600/-rw-------) Uid: ( 107/postgres) Gid: ( 115/postgres)
> Access: 2011-12-14 23:35:35.630043643 +0000
> Modify: 2011-12-14 23:35:35.630043643 +0000
> Change: 2011-12-14 23:35:35.630043643 +0000
> File: `pg_internal.init'
> Size: 98532 Blocks: 200 IO Block: 4096 regular file
> Device: fe00h/65024d Inode: 1073741952 Links: 1
> Access: (0600/-rw-------) Uid: ( 107/postgres) Gid: ( 115/postgres)
> Access: 2011-12-14 23:35:35.630043643 +0000
> Modify: 2011-12-14 23:35:35.630043643 +0000
> Change: 2011-12-14 23:35:35.630043643 +0000

> Most notably, the inode numbers are the same. At first, I thought
> this was a file descriptor race in PG, but then I noticed the file
> system only reports *one* link: that doesn't look like a valid state
> for XFS.

Yeah. In any case it wouldn't be a PG bug, because we don't issue any
link(2) calls AFAIR. File an XFS bug.

regards, tom lane

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Tom Lane 2012-01-04 02:38:38 Re: controlling the location of server-side SSL files
Previous Message Tom Lane 2012-01-04 02:23:19 Re: Setting -Werror in CFLAGS