Skip to content

Conversation

@marcobambini
Copy link
Member

No description provided.

marcobambini and others added 30 commits December 9, 2025 13:46
…ead of direct sqlite3_* memory function to support the memory debugger module

call cloudsync_memory_mprintf and cloudsync_memory_free instead of direct sqlite3_mprintf and sqlite3_free memory functions from database_create_insert_trigger otherwise the memory debugger would report "Pointer being freed was not previously allocated."
Introduces a 'unittest' target to run only unit tests and updates the help output accordingly.
use `make unittest` to run only the unittest
andinux and others added 29 commits January 23, 2026 16:57
…x specified by skip_decode_idx)

we still need to parse the value depending on the data type to increment the bseek value for the next loop
…ackend

Previously, databasevm_reset() called databasevm_clear_bindings() which
destroyed the SPIPlanPtr on every reset, forcing a full SPI_prepare on
each bind/step cycle. This negated the benefit of caching statements in
cloudsync_table_context. Now reset() only clears parameter values while
keeping the plan, types, and nparams intact for reuse.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
…H, the CopyErrorData func must not be called from a error context
…gs. Fixed warnings in test (due to uint64_t usage in a signed BIGINT)
…and move the test for repeated_table on multiple schemas to a separated test file
Several quoting issues fixed.
Added pfree(elems) and pfree(nulls) after the loop to free memory allocated by deconstruct_array.
Moved CStringGetTextDatum allocations before PG_TRY and pfree calls after PG_END_TRY. A need_schema_param flag determines
  whether 1 or 2 Datums are allocated/freed. This ensures the Datum memory is cleaned up on both the success path and the PG_CATCH error path.
@marcobambini marcobambini merged commit cabdaeb into main Jan 27, 2026
3 of 15 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants