Skip to content

speed #30

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
May 12, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions pglite-REL_17_4_WASM/interactive_one.c
Original file line number Diff line number Diff line change
Expand Up @@ -524,14 +524,14 @@ PDEBUG("# 500: NO DATA:" PGS_IN );
printf("\n# 500: fd=%d is_embed=%d is_repl=%d is_wire=%d fd %s,len=%d cma=%d peek=%d [%s]\n", MyProcPort->sock, is_embed, is_repl, is_wire, PGS_OLOCK, packetlen,cma_rsize, peek, IO);
#endif

// buffer query TODO: direct access ?
// CMA wire mode. -> packetlen was set to cma_rsize
resetStringInfo(inBuf);

for (int i=0; i<packetlen; i++) {
appendStringInfoChar(inBuf, IO[i]);
// when cma buffer is used to fake stdin, data is not read by socket/wire backend.
if (is_repl) {
for (int i=0; i<packetlen; i++) {
appendStringInfoChar(inBuf, IO[i]);
}
}

if (packetlen<2) {
puts("# 512: WARNING: empty packet");
//cma_rsize= 0;
Expand Down