Skip to content

Memory leak when calling funcion http_request() #73

@samuel-coulee

Description

@samuel-coulee

Hi,

When I call 'http_put' or 'http_post' in my SQL script, I found that the memory consumption of the corresponding PG backend process was growing rapidly (about 2M per seond).

I did a little investigation in http.c...
it seems that in the end of function 'http_request()', when we are constructing the http_response tuple, the memory allocated by CStringGetTextDatum() / header_string_to_array() / cstring_to_text_with_len() was not released immediately.

is there a way to prevent this memory leak?
thanks in advance..

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions