Skip to content

Instantly share code, notes, and snippets.

View interma's full-sized avatar
🟢
⚫🔵

Hongxu Ma interma

🟢
⚫🔵
View GitHub Profile
@interma
interma / dump_gp_memorycontext.sh
Created March 4, 2024 08:33
gdb script to print the content of memorycontext
set pagination off
set logging file gdb.out.values
set logging on
set $b = ((AllocSetContext*)TopMemoryContext).blocks
set $b_loop = 100000
while ($b_loop > 0)
set $c = (void *)($b+1)
set $c_loop = 100
@interma
interma / trace_pq.sh
Last active August 9, 2023 02:48
libpq message of dispatch
## the example of the dispatch message on QD side
# PasswordMessage
To backend> Msg
To backend> p user ubuntu database postgres options -c gp_qd_hostname=127.0.1.1 -c gp_qd_port=5432 -c allow_in_place_tablespaces=false -c allow_segment_DML=false -c allow_system_table_mods=false -c array_nulls=true -c backend_flush_after=0 -c backslash_quote=safe_encoding -c bytea_output=hex -c client_min_messages=notice -c commit_delay=0 -c commit_siblings=5 -c coredump_on_memerror=false -c DateStyle=ISO,\ MDY -c Debug_appendonly_print_append_block=false -c debug_appendonly_print_blockdirectory=false -c debug_appendonly_print_compaction=false -c debug_appendonly_print_datumstream=false -c debug_appendonly_print_delete=false -c debug_appendonly_print_insert=false -c debug_appendonly_print_insert_tuple=false -c Debug_appendonly_print_read_block=false -c debug_appendonly_print_scan=false -c debug_appendonly_print_scan_tuple=false -c debug_appendonly_print_segfile_choice=false -c debug_appendonly_print_storage_headers=false -c d
@interma
interma / The big interview with Martin Kleppmann.txt
Created June 28, 2019 09:49
The big interview with Martin Kleppmann: “Figuring out the future of distributed data systems”
Dr. Martin Kleppmann is a researcher in distributed systems at the University of Cambridge, and the author of the highly acclaimed “Designing Data-Intensive Applications” (O’Reilly Media, 2017).
Kevin Scott, CTO at Microsoft once said: “This book should be required reading for software engineers. Designing Data-Intensive Applications is a rare resource that connects theory and practice to help developers make smart decisions as they design and implement data infrastructure and systems.”
Martin’s main research interests include collaboration software, CRDTs, and formal verification of distributed algorithms. Previously he was a software engineer and an entrepreneur at several Internet companies including LinkedIn and Rapportive, where he worked on large-scale data infrastructure.
Vadim Tsesko (@incubos) is a lead software engineer at Odnoklassniki who works in Core Platform team. Vadim’s scientific and engineering interests include distributed systems, data warehouses and verification of software systems.
C