projects
/
users
/
bernd
/
postgres.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d8a5608
)
Add comment for VARSIZE_ANY_EXHDR macro
author
Bruce Momjian
<
[email protected]
>
Wed, 11 Sep 2013 00:18:53 +0000
(20:18 -0400)
committer
Bruce Momjian
<
[email protected]
>
Wed, 11 Sep 2013 00:18:53 +0000
(20:18 -0400)
Gurjeet Singh
src/include/postgres.h
patch
|
blob
|
blame
|
history
diff --git
a/src/include/postgres.h
b/src/include/postgres.h
index cb9d196c519b554956e20dbde2371fa4252aa79c..3c5acdba8b7574494e5649c7534310c2633e9ab7 100644
(file)
--- a/
src/include/postgres.h
+++ b/
src/include/postgres.h
@@
-307,6
+307,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_EXTERNAL(PTR)-VARHDRSZ_EXTERNAL : \
(VARATT_IS_1B(PTR) ? VARSIZE_1B(PTR)-VARHDRSZ_SHORT : \