projects
/
postgresql.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
766f7fd
)
Fix comment about length of text, bytea, etc.
author
Noah Misch
<noah@leadboat.com>
Sun, 12 Mar 2017 23:35:30 +0000
(19:35 -0400)
committer
Noah Misch
<noah@leadboat.com>
Sun, 12 Mar 2017 23:35:30 +0000
(19:35 -0400)
When commit
3e23b68dac006e8deb0afa327e855258df8de064
introduced
single-byte varlena headers, it rendered this comment incomplete.
src/include/c.h
patch
|
blob
|
blame
|
history
diff --git
a/src/include/c.h
b/src/include/c.h
index bd122f6a56b7bd5061d44c7a048545f9678cb1ba..492648cd8a57220008adc9e6ed972ecf9644e614 100644
(file)
--- a/
src/include/c.h
+++ b/
src/include/c.h
@@
-446,7
+446,7
@@
struct varlena
/*
* These widely-used datatypes are just a varlena header and the data bytes.
* There is no terminating null or anything like that --- the data length is
- * always VARSIZE
(ptr) - VARHDRSZ
.
+ * always VARSIZE
_ANY_EXHDR(ptr)
.
*/
typedef struct varlena bytea;
typedef struct varlena text;