ports/www/angie-module-postgres/files/patch-ngx_postgres-subrequest_in_memory
Oleg A. Mamontov 2043de1ccc www/angie-module-postgres: Angie postgres dynamic module
This is an upstream module that allows Angie to communicate directly with
PostgreSQL database.

PR:		Angie postgres dynamic module
2023-09-10 12:13:01 -04:00

18 lines
564 B
Text

--- ../ngx_postgres-1.0rc7/src/ngx_postgres_handler.c.orig
+++ ../ngx_postgres-1.0rc7/src/ngx_postgres_handler.c
@@ -52,6 +52,7 @@
dd("entering");
+#if defined(nginx_version) && (nginx_version < 13010)
if (r->subrequest_in_memory) {
/* TODO: add support for subrequest in memory by
* emitting output into u->buffer instead */
@@ -63,6 +64,7 @@
dd("returning NGX_HTTP_INTERNAL_SERVER_ERROR");
return NGX_HTTP_INTERNAL_SERVER_ERROR;
}
+#endif
pglcf = ngx_http_get_module_loc_conf(r, ngx_postgres_module);