Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Commits on Jun 21, 2012
  1. @agentzh

    bugfix: memory leak might happen if nginx 1.1.14+ is used *and* (at l…

    agentzh authored
    …east) libpq fails to connect to the remote database.
Commits on Jun 2, 2012
  1. @agentzh
Commits on Jun 1, 2012
  1. @agentzh
Commits on Apr 27, 2012
  1. @agentzh
  2. @agentzh
Commits on Apr 26, 2012
  1. @agentzh
Commits on Feb 2, 2012
  1. @agentzh
Commits on Dec 28, 2011
  1. @PiotrSikora

    Update CHANGES (releng for 0.9).

    PiotrSikora authored
    Change-Id: I411c8bd5b24b8e5a4b7f26f84b8071ea02a16ccf
    Signed-off-by: Piotr Sikora <piotr.sikora@frickle.com>
  2. @PiotrSikora

    Update nginx compatibility list.

    PiotrSikora authored
    Change-Id: I57ad737fc66ae7a7f76e678d1012fc8d0921a74e
    Signed-off-by: Piotr Sikora <piotr.sikora@frickle.com>
Commits on Dec 27, 2011
  1. @PiotrSikora

    Remove trailing whitespaces.

    PiotrSikora authored
    Change-Id: I4c63b363cc922521eb2e48e93d1db0a4e4c0f105
    Signed-off-by: Piotr Sikora <piotr.sikora@frickle.com>
  2. @PiotrSikora

    Add nginx-style debug logging.

    PiotrSikora authored
    Based on patch from Yichun Zhang (agentzh).
    
    Change-Id: If2094a3a300500b1a6710e59d148e83abf3b6da4
    Signed-off-by: Piotr Sikora <piotr.sikora@frickle.com>
Commits on Dec 23, 2011
  1. @PiotrSikora

    Make sure that the write event really occured before re-polling.

    PiotrSikora authored
    The "re-polling" hack to work-around the case in which both:
    read and write events occured within the same event processing
    call was being used for any CONNECTION_MADE status, without
    checking if the write really occured.
    
    Based on patch from Yichun Zhang (agentzh).
    
    Change-Id: Ia8310a109baf639d1c5c3c766d2298c3610e6d47
    Signed-off-by: Piotr Sikora <piotr.sikora@frickle.com>
  2. @PiotrSikora

    Fix compatibility with poll, select and /dev/poll event models.

    PiotrSikora authored
    Reported by Yichun Zhang (agentzh).
    
    Change-Id: I9411e72ccfdbb0d974a92b6cba569dc15254ed3d
    Signed-off-by: Piotr Sikora <piotr.sikora@frickle.com>
Commits on Nov 10, 2011
  1. @PiotrSikora

    Fix compatibility with PostgreSQL 9.x: bytea output.

    PiotrSikora authored
    The issue that hit many (most?) of PostgreSQL adapters is that libpq-8.x
    is unable to unescape bytea data from results in text format received
    from PostgreSQL-9.x.
    
    But we're always passing bytea data as is to the client (either from
    results in binary format when using "postgres_output binary_value"
    or escaped from results in text format), so this isn't problem for us.
    
    Patch from Yichun Zhang (agentzh).
  2. @PiotrSikora

    Fix compatibility with PostgreSQL 9.x: rows affected.

    PiotrSikora authored
    Starting with PostgreSQL 9.0, libpq's PQcmdTuples() returns row count
    for SELECT queries (previously it returned empty string).
    
    Because we're using this value to detect number of changed rows,
    both: "postgres_rewrite" directive and "$postgres_affected" variable
    were working incorrectly.
    
    Reported by Yichun Zhang (agentzh).
  3. @agentzh @PiotrSikora

    bugfix: now we log an error message when the postgres_pass target is …

    agentzh authored PiotrSikora committed
    …not found at all and returns 500 in this case instead of returning empty response.
  4. @PiotrSikora

    Allow global definition of DDEBUG.

    PiotrSikora authored
    From Yichun Zhang (agentzh).
  5. @PiotrSikora

    Fix compatibility with nginx-1.1.4+.

    PiotrSikora authored
    Partly from Yichun Zhang (agentzh).
  6. @PiotrSikora
Commits on Jul 13, 2011
  1. @agentzh

    fixed an issue regarding defining global variables in C header files:…

    agentzh authored
    … we should have defined rds_rough_col_type_t as a type rather than a global variable. thanks @姜大炮.
Commits on Jun 21, 2011
  1. @PiotrSikora

    Always return first (and only) value for "postgres_output value".

    PiotrSikora authored
    This is second part of the "write proper SQL queries" campaign. Queries
    that return more than one value will result in "500 Internal Server Error"
    response.
  2. @PiotrSikora

    Replace "postgres_output row <row>" with "postgres_output text".

    PiotrSikora authored
    This is more general approach, which forces writing proper SQL queries
    instead of filtering results on the nginx side and allows for sending
    output from multiple rows to end-users.
    
    Discussed with Silly Sad.
  3. @PiotrSikora
Commits on Jun 17, 2011
  1. @PiotrSikora

    Improve library discovery process by using PostgreSQL's pg_config.

    PiotrSikora authored
    Based on patch from Silly Sad.
  2. @PiotrSikora

    Don't set last_buf=1 (duplicated last chunk issue).

    PiotrSikora authored
    Because ngx_http_upstream_finalize_request sends NGX_HTTP_LAST,
    having last_buf=1 in our module meant that last two chains always
    had last_buf=1, which resulted in duplicated last chunk sent for
    HTTP/1.1 requests. This pretty much killed keep-alived requests.
    
    Reported by Silly Sad, diagnosed by Maxim Dounin.
    
    Same issue was independently diagnosed and fixed in ngx_drizzle
    by Yichun Zhang (agentzh) few days ago.
Commits on May 11, 2011
  1. @agentzh
  2. @agentzh

    updated .gitignore a bit.

    agentzh authored
Commits on Feb 18, 2011
  1. @agentzh
  2. @agentzh

    removed the hand-written << "in upstream \"t.shV\"", &pgdt->name >> p…

    agentzh authored
    …art from most of the ngx_log_error calls in ngx_postgres_keepalive.c because they are duplicate with the << upstream: "postgres://ip.add.re.ss:port" >> part automatically generated by the ngx_http_log_error_handler function in the nginx core.
  3. @agentzh

    fixed a bug in the connection pool: we should copy over the "name" an…

    agentzh authored
    …d "sockaddr" fields instead of passing pointers around.
Commits on Feb 17, 2011
  1. @agentzh

    fixed a minor bug in the connection pool: we should resume the "name"…

    agentzh authored
    …, "sockaddr", and "socklen" fields for the connection from the pool such that we can get more detailed error log messages with the "upstream: postgres://ip.add.re.ss:port" bit.
Commits on Jan 13, 2011
  1. @PiotrSikora

    Use PQescapeLiteral() to detect PostgreSQL 9.0.

    PiotrSikora authored
    Calling PQconnectStartParams(NULL, *, *) results in SIGSEGV.
Commits on Jan 4, 2011
  1. @PiotrSikora
Commits on Dec 23, 2010
  1. @PiotrSikora
  2. @PiotrSikora
Something went wrong with that request. Please try again.