public inbox for rhdb@sourceware.org
 help / color / mirror / Atom feed
From: Kenji Sugita <sugita@nf.catv.ne.jp>
To: rhdb@sources.redhat.com
Subject: fixes for pg_filedump 2.0
Date: Sat, 31 May 2003 12:52:00 -0000	[thread overview]
Message-ID: <20030531.215215.68558731.sugita@nf.catv.ne.jp> (raw)

[-- Attachment #1: Type: Text/Plain, Size: 107 bytes --]

Dear RedHat,

Attached is a small fix for pg_filedump 2.0 for PostgreSQL 7.3.

Best regards,

Kenji Sugita

[-- Attachment #2: patch.diff --]
[-- Type: Application/Octet-Stream, Size: 783 bytes --]

Index: pg_filedump.c
===================================================================
RCS file: /home/prj/pg/cvsroot/seminar/Admin/cd/tools/pg_filedump-2.0/pg_filedump.c,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- pg_filedump.c	31 May 2003 12:34:55 -0000	1.1
+++ pg_filedump.c	31 May 2003 12:44:49 -0000	1.2
@@ -829,7 +829,10 @@
 		  else
 			bitmapLength = 0;
 
-		  computedLength = MAXALIGN (localBitOffset + bitmapLength);
+		  if (infoMask & HEAP_HASOID)
+		        computedLength = MAXALIGN (localBitOffset + bitmapLength) + MAXALIGN (sizeof(Oid));
+		  else
+		        computedLength = MAXALIGN (localBitOffset + bitmapLength);
 
 		  // Inform the user of a header size mismatch or dump the t_bits array
 		  if (computedLength != localHoff)

             reply	other threads:[~2003-05-31 12:52 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-05-31 12:52 Kenji Sugita [this message]
2003-06-02 14:16 ` Patrick Macdonald

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20030531.215215.68558731.sugita@nf.catv.ne.jp \
    --to=sugita@nf.catv.ne.jp \
    --cc=rhdb@sources.redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).