mirror of
https://github.com/neondatabase/neon.git
synced 2026-05-22 07:30:37 +00:00
fix escaping of lfc path (exposed by the benchmark)
This commit is contained in:
@@ -3804,9 +3804,10 @@ class Endpoint(PgProtocol, LogUtils):
|
||||
# shared_buffers = 512kB to make postgres use LFC intensively
|
||||
# neon.max_file_cache_size and neon.file_cache size limit are
|
||||
# set to 1MB because small LFC is better for testing (helps to find more problems)
|
||||
lfc_path_escaped = str(lfc_path).replace("'", "''")
|
||||
config_lines = [
|
||||
"shared_buffers = 512kB",
|
||||
f"neon.file_cache_path = '{self.lfc_path()}'",
|
||||
f"neon.file_cache_path = '{lfc_path_escaped}'",
|
||||
"neon.max_file_cache_size = 1MB",
|
||||
"neon.file_cache_size_limit = 1MB",
|
||||
] + config_lines
|
||||
|
||||
Reference in New Issue
Block a user