mirror of
https://github.com/timescale/timescaledb.git
synced 2025-05-17 19:13:16 +08:00
This makes the following changes related to the net lib: - A CMake run now fails in case OpenSSL is not found when the local PostgreSQL installation has been compiled with SSL enabled. The reason why it is best to fail the CMake run in this case is because USE_OPENSSL will be defined and 1 in `pg_config.h` and thus we will compile with SSL support. - Use palloc/pfree in connection library. - Split net library into separate source files. The net library is refactored so that the code for different connection types live in their separate source files. In particular, the source code for mock connections is now moved to `test/src/net`. - The generate_typedefs.sh script now runs in subdirectories so that source files in those subdirectories are properly pgindented. - The pgindent target previously did not cover files under `test/src`. This is now fixed. An exclude file has also been added that avoids running pgindent in hidden directories. This fixes issues with, e.g., trying to indent files in cquery caches. - Fix formatting with pgindent Fix parameter types in HTTP lib. Add `const` to parameter types, such as strings. Use `size_t` for length parameters - Parse and validate the status line of HTTP responses. The beginning of HTTP responses weren't properly parsed and validated, allowing invalid character sequences at the start of requests.
15 lines
957 B
SQL
15 lines
957 B
SQL
\c single :ROLE_SUPERUSER
|
|
CREATE OR REPLACE FUNCTION _timescaledb_internal.test_http_parsing(int) RETURNS VOID
|
|
AS :MODULE_PATHNAME, 'test_http_parsing' LANGUAGE C IMMUTABLE STRICT PARALLEL SAFE;
|
|
CREATE OR REPLACE FUNCTION _timescaledb_internal.test_http_parsing_full() RETURNS VOID
|
|
AS :MODULE_PATHNAME, 'test_http_parsing_full' LANGUAGE C IMMUTABLE STRICT PARALLEL SAFE;
|
|
CREATE OR REPLACE FUNCTION _timescaledb_internal.test_http_request_build() RETURNS VOID
|
|
AS :MODULE_PATHNAME, 'test_http_request_build' LANGUAGE C IMMUTABLE STRICT PARALLEL SAFE;
|
|
CREATE OR REPLACE FUNCTION _timescaledb_internal.test_conn() RETURNS VOID
|
|
AS :MODULE_PATHNAME, 'test_conn' LANGUAGE C IMMUTABLE STRICT PARALLEL SAFE;
|
|
\c single :ROLE_DEFAULT_PERM_USER
|
|
SELECT _timescaledb_internal.test_http_parsing(10000);
|
|
SELECT _timescaledb_internal.test_http_parsing_full();
|
|
SELECT _timescaledb_internal.test_http_request_build();
|
|
SELECT _timescaledb_internal.test_conn();
|