diff options
author | Tom Lane | 2020-05-14 17:06:38 +0000 |
---|---|---|
committer | Tom Lane | 2020-05-14 17:06:50 +0000 |
commit | 5cbfce562f7cd2aab0cdc4694ce298ec3567930e (patch) | |
tree | 64e722d72fc5f1803cb6f6371d6cf12863e2812f /src/backend/access/common/detoast.c | |
parent | 1255466f8358ecac29581aa5ecec76628dc2e33c (diff) |
Initial pgindent and pgperltidy run for v13.
Includes some manual cleanup of places that pgindent messed up,
most of which weren't per project style anyway.
Notably, it seems some people didn't absorb the style rules of
commit c9d297751, because there were a bunch of new occurrences
of function calls with a newline just after the left paren, all
with faulty expectations about how the rest of the call would get
indented.
Diffstat (limited to 'src/backend/access/common/detoast.c')
-rw-r--r-- | src/backend/access/common/detoast.c | 19 |
1 files changed, 10 insertions, 9 deletions
diff --git a/src/backend/access/common/detoast.c b/src/backend/access/common/detoast.c index 496240c7551..44c37edcbb4 100644 --- a/src/backend/access/common/detoast.c +++ b/src/backend/access/common/detoast.c @@ -201,7 +201,7 @@ detoast_attr(struct varlena *attr) */ struct varlena * detoast_attr_slice(struct varlena *attr, - int32 sliceoffset, int32 slicelength) + int32 sliceoffset, int32 slicelength) { struct varlena *preslice; struct varlena *result; @@ -220,12 +220,12 @@ detoast_attr_slice(struct varlena *attr, /* * For compressed values, we need to fetch enough slices to decompress - * at least the requested part (when a prefix is requested). Otherwise, - * just fetch all slices. + * at least the requested part (when a prefix is requested). + * Otherwise, just fetch all slices. */ if (slicelength > 0 && sliceoffset >= 0) { - int32 max_size; + int32 max_size; /* * Determine maximum amount of compressed data needed for a prefix @@ -253,7 +253,7 @@ detoast_attr_slice(struct varlena *attr, Assert(!VARATT_IS_EXTERNAL_INDIRECT(redirect.pointer)); return detoast_attr_slice(redirect.pointer, - sliceoffset, slicelength); + sliceoffset, slicelength); } else if (VARATT_IS_EXTERNAL_EXPANDED(attr)) { @@ -343,7 +343,8 @@ toast_fetch_datum(struct varlena *attr) SET_VARSIZE(result, attrsize + VARHDRSZ); if (attrsize == 0) - return result; /* Probably shouldn't happen, but just in case. */ + return result; /* Probably shouldn't happen, but just in + * case. */ /* * Open the toast relation and its indexes @@ -387,9 +388,9 @@ toast_fetch_datum_slice(struct varlena *attr, int32 sliceoffset, VARATT_EXTERNAL_GET_POINTER(toast_pointer, attr); /* - * It's nonsense to fetch slices of a compressed datum unless when it's - * a prefix -- this isn't lo_* we can't return a compressed datum which - * is meaningful to toast later. + * It's nonsense to fetch slices of a compressed datum unless when it's a + * prefix -- this isn't lo_* we can't return a compressed datum which is + * meaningful to toast later. */ Assert(!VARATT_EXTERNAL_IS_COMPRESSED(toast_pointer) || 0 == sliceoffset); |