Hello!
On Sat, Aug 24, 2013 at 1:01 AM, linuor wrote:
> thank you for your excellent work on drizzle, it works fine in most case.
>
Glad you like it :)
> but we just found that it was difficult to use as a subrequest:
>
> in parent-request's subrequest_post_handler(ngx_http_request_t *r, void
> *data, ngx_int_t rc),
> r->upstream->buffer is empty.
> but, drizzle still responed with a set of records.
>
> at last we found that drizzle had not supported subrequest_in_memory yet.
>
> So, we are just wondering how to get drizzle query result, when use it as in
> a sub request.
The ngx_drizzle module (and ngx_postgres module) does not support the
standard upstream's "subrequest_in_memory" feature. But you can always
capture the subrequest's response in memory yourself in your own Nginx
output filters, just like how ngx_lua module's ngx.location.capture()
Lua API captures the response of *any* nginx subrequest:
http://wiki.nginx.org/HttpLuaModule#ngx.location.capture
BTW, I'm cc'ing the openresty-en mailing list:
https://groups.google.com/group/openresty-en And you're highly
recommended to discuss such things there :)
Thanks!
-agentzh