Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: vapor/postgres-kit
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: main
Choose a base ref
...
head repository: vapor/postgres-kit
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 1
Choose a head ref
Checking mergeability… Don’t worry, you can still create the pull request.
  • 18 commits
  • 20 files changed
  • 7 contributors

Commits on Feb 12, 2019

  1. Configuration menu
    Copy the full SHA
    3cfe6fc View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    a7c4e6f View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    49de70b View commit details
    Browse the repository at this point in the history
  4. Merge pull request #121 from vapor/nio-ssl-fix

    add nio ssl as explicit dep
    tanner0101 authored Feb 12, 2019
    Configuration menu
    Copy the full SHA
    cbe5505 View commit details
    Browse the repository at this point in the history

Commits on Feb 19, 2019

  1. Fix a retain cycle in PostgreSQLConnection (#116)

    By adding a handler that retains self on the channel's close future, the connection gets retained until the channel is closed. We break the retain cycle by using a weak reference to self. The completion handler in `send(:onResponse:)` is enough to ensure that the connection stays alive while a message is sent to the server.
    baarde authored and tanner0101 committed Feb 19, 2019
    Configuration menu
    Copy the full SHA
    9f706b5 View commit details
    Browse the repository at this point in the history
  2. Fix empty keyed encoding (#123)

    * Add test for empty keyed encoding
    
    * Replace _KeyedError with a flag that is set as soon as a keyed container is requested
    
    The encoder will fallback to JSONB using JSONEncoder even if the encoded type does not encode any key.
    baarde authored and tanner0101 committed Feb 19, 2019
    Configuration menu
    Copy the full SHA
    d34cf72 View commit details
    Browse the repository at this point in the history

Commits on Feb 26, 2019

  1. point endianness fix (#126)

    * psql point endianness, fixes #125
    
    * add test to allTests
    
    * fix allTests
    tanner0101 authored Feb 26, 2019
    Configuration menu
    Copy the full SHA
    faf37ff View commit details
    Browse the repository at this point in the history
  2. add endiannessflipped

    tanner0101 committed Feb 26, 2019
    Configuration menu
    Copy the full SHA
    4388d3c View commit details
    Browse the repository at this point in the history

Commits on Mar 1, 2019

  1. added polygon data-type (#129)

    * added polygon data-type
    
    * added polygon data-type
    
    * added tests for polygon
    
    * fixed polygon typos
    ericchapman authored and tanner0101 committed Mar 1, 2019
    Configuration menu
    Copy the full SHA
    830abbc View commit details
    Browse the repository at this point in the history
  2. Fix conversion between Date and timestamp/timestamptz types (#117)

    It seems timestamp values are adjusted for the local time zone.
    When converting to a Date, we need to subtract the local offset to get
    the correct value.
    When converting from a Date, it is better to use the timestamptz type,
    which works with both kinds of fields and does not have this problem.
    michal-tomlein authored and tanner0101 committed Mar 1, 2019
    Configuration menu
    Copy the full SHA
    bb4e603 View commit details
    Browse the repository at this point in the history

Commits on Mar 12, 2019

  1. Configuration menu
    Copy the full SHA
    4d99693 View commit details
    Browse the repository at this point in the history

Commits on Mar 13, 2019

  1. configure performance testing (#133)

    * configure performance testing
    
    * add -enable-testing
    
    * use swift 4.1 + add psql to perf test
    tanner0101 authored Mar 13, 2019
    Configuration menu
    Copy the full SHA
    5088dcb View commit details
    Browse the repository at this point in the history

Commits on Mar 14, 2019

  1. Significantly improve performance of row decoding. (#130) (#134)

    * Significantly improve performance of row decoding.
    
    Motivation:
    
    1. `PostgreSQLRowDecoder`: `_KeyedDecodingContainer.decode` is called once for each key on the decoded object. With the current implementation, this performs a linear search on the `row` dictionary, which results in a total runtime (per object) of O(keys * columns), i.e. quadratic runtime ~O(keys^2). We replace the current linear search with one or two dictionary lookups if `tableOID != 0`, resulting in linear runtime (per object) in the number of keys (provided dictionary lookups can be assumed to take roughly constant time).
    2. `PostgreSQLConnection.TableNameCache`: Most lookups are `tableName -> OID`. We accelerate that lookup by preparing a dictionary for that kind of lookup ahead of time, again replacing linear search.
    
    Effect:
    
    The time required for decoding ~5k objects with 9 fields each drops from ~0.4s on a Core i7-6700k (Release build) to ~0.2s, effectively doubling throughput. Optimization 1 contributes ~130 ms, Optimization 2 contributes ~70ms.
    
    * Whitespace fixes.
    
    * Comment fix.
    
    * More whitespace, sorry.
    
    * Implement `decodeIfPresent` to avoid two dictionary lookups per call.
    
    * Minor code simplification.
    tanner0101 authored Mar 14, 2019
    Configuration menu
    Copy the full SHA
    41cec28 View commit details
    Browse the repository at this point in the history

Commits on Sep 8, 2019

  1. Handle NULLs when decoding arrays (#142)

    * Add crashing test for decoding an array with NULL values
    
    * Fix crash on NULL values inside arrays
    vzsg authored Sep 8, 2019
    Configuration menu
    Copy the full SHA
    561fa79 View commit details
    Browse the repository at this point in the history

Commits on Oct 14, 2019

  1. Configuration menu
    Copy the full SHA
    69ccf32 View commit details
    Browse the repository at this point in the history

Commits on Mar 30, 2020

  1. Configuration menu
    Copy the full SHA
    367c120 View commit details
    Browse the repository at this point in the history

Commits on Mar 31, 2020

  1. Configuration menu
    Copy the full SHA
    489537a View commit details
    Browse the repository at this point in the history

Commits on Jun 29, 2022

  1. Ignore ParamaterStatus messages when handling response (#218)

    ParameterStatus messages may be generated in response to a SET command or when the administrator sends the SIGHUP signals to the server. They will appear in the query response and should be ignored.
    baarde authored Jun 29, 2022
    Configuration menu
    Copy the full SHA
    9f92317 View commit details
    Browse the repository at this point in the history
Loading