Skip to content

Commit 4263788

Browse files
author
Nikita Glukhov
committed
DBG
1 parent fa43782 commit 4263788

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

contrib/jsonb_toaster/jsonb_toast_internals.c

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1102,6 +1102,8 @@ fetch_datum_decompress_chunk(JsonxFetchDatumIterator iter, int32 maxoffset)
11021102
new_limit = iter->compressed_chunk.dst_buf.limit -
11031103
iter->compressed_chunk.dst_buf.buf;
11041104

1105+
//elog(INFO, "decompress from %8d to %8d\n", chunk_offset + old_limit, chunk_offset + new_limit);
1106+
11051107
fetch_datum_iterator_set_bits(iter, chunk_offset + old_limit,
11061108
chunk_offset + new_limit - 1);
11071109

@@ -1420,6 +1422,8 @@ jsonx_fetch_datum_iterate(JsonxFetchDatumIterator iter, int32 maxoffset)
14201422
*/
14211423
if (chunk_is_compressed)
14221424
{
1425+
//elog(INFO, "iterate %8d to %d\n", residx, maxoffset);
1426+
14231427
if (maxoffset < 0)
14241428
maxoffset = residx + chunksize;
14251429

@@ -1459,6 +1463,8 @@ jsonx_fetch_datum_iterate_to(JsonxFetchDatumIterator iter, int32 chunkno, int32
14591463
int32 chunk_offset = iter->compressed_chunk.offset;
14601464
int32 chunk_next = chunk_offset + iter->compressed_chunk.size;
14611465

1466+
//elog(INFO, "iterate_to from %8d to %8d\n", chunkno, maxoffset);
1467+
14621468
if (chunkno >= chunk_offset && chunkno < chunk_next)
14631469
{
14641470
fetch_datum_decompress_chunk(iter, maxoffset);

src/backend/utils/adt/numeric.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -734,6 +734,7 @@ numeric_in(PG_FUNCTION_ARGS)
734734
Datum
735735
numeric_out(PG_FUNCTION_ARGS)
736736
{
737+
Assert(!VARATT_IS_COMPRESSED(PG_GETARG_DATUM(0)));
737738
Numeric num = PG_GETARG_NUMERIC(0);
738739
NumericVar x;
739740
char *str;

0 commit comments

Comments
 (0)