public inbox for rhdb@sourceware.org
 help / color / mirror / Atom feed
* fixes for pg_filedump 2.0
@ 2003-05-31 12:52 Kenji Sugita
  2003-06-02 14:16 ` Patrick Macdonald
  0 siblings, 1 reply; 2+ messages in thread
From: Kenji Sugita @ 2003-05-31 12:52 UTC (permalink / raw)
  To: rhdb

[-- 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)

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

end of thread, other threads:[~2003-06-02 14:16 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-05-31 12:52 fixes for pg_filedump 2.0 Kenji Sugita
2003-06-02 14:16 ` Patrick Macdonald

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).