One-line comment to improve understanding of VARSIZE_ANY_EXHDR macro

Started by Gurjeet Singhalmost 13 years ago2 messages
#1Gurjeet Singh
gurjeet@singh.im
1 attachment(s)

Hopefully I am not wrong.

+/* Size of a varlena data, excluding header */
#define VARSIZE_ANY_EXHDR(PTR) \

--
Gurjeet Singh

http://gurjeet.singh.im/

EnterprsieDB Inc.

Attachments:

exhdr_comment.patchapplication/octet-stream; name=exhdr_comment.patchDownload
diff --git a/src/include/postgres.h b/src/include/postgres.h
index f9c5527..5f8ada6 100644
--- a/src/include/postgres.h
+++ b/src/include/postgres.h
@@ -267,6 +267,7 @@ typedef struct
 	 (VARATT_IS_1B(PTR) ? VARSIZE_1B(PTR) : \
 	  VARSIZE_4B(PTR)))
 
+/* Size of a varlena data, excluding header */
 #define VARSIZE_ANY_EXHDR(PTR) \
 	(VARATT_IS_1B_E(PTR) ? VARSIZE_1B_E(PTR)-VARHDRSZ_EXTERNAL : \
 	 (VARATT_IS_1B(PTR) ? VARSIZE_1B(PTR)-VARHDRSZ_SHORT : \
#2Bruce Momjian
bruce@momjian.us
In reply to: Gurjeet Singh (#1)
Re: One-line comment to improve understanding of VARSIZE_ANY_EXHDR macro

Applied.

---------------------------------------------------------------------------

On Tue, Feb 19, 2013 at 06:40:07PM -0500, Gurjeet Singh wrote:

Hopefully I am not wrong.

+/* Size of a varlena data, excluding header */
#define VARSIZE_ANY_EXHDR(PTR) \

--
Gurjeet Singh

http://gurjeet.singh.im/

EnterprsieDB Inc.

diff --git a/src/include/postgres.h b/src/include/postgres.h
index f9c5527..5f8ada6 100644
--- a/src/include/postgres.h
+++ b/src/include/postgres.h
@@ -267,6 +267,7 @@ typedef struct
(VARATT_IS_1B(PTR) ? VARSIZE_1B(PTR) : \
VARSIZE_4B(PTR)))

+/* Size of a varlena data, excluding header */
#define VARSIZE_ANY_EXHDR(PTR) \
(VARATT_IS_1B_E(PTR) ? VARSIZE_1B_E(PTR)-VARHDRSZ_EXTERNAL : \
(VARATT_IS_1B(PTR) ? VARSIZE_1B(PTR)-VARHDRSZ_SHORT : \

--
Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-hackers

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

+ It's impossible for everything to be true. +

--
Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-hackers