Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sync to latest rust-postgres and move changes to a single patch #16

Open
wants to merge 35 commits into
base: master
Choose a base branch
from

Commits on Jun 4, 2024

  1. Work with pools that don't support prepared statements

    Introduce a new `query_with_param_types` method that allows to specify Postgres type parameters. This obviated the need to use prepared statementsjust to obtain parameter types for a query. It then combines parse, bind, and execute in a single packet.
    
    Related: sfackler#1017, sfackler#1067
    ramnivas committed Jun 4, 2024
    Configuration menu
    Copy the full SHA
    f397668 View commit details
    Browse the repository at this point in the history

Commits on Jul 7, 2024

  1. Configuration menu
    Copy the full SHA
    3f8f5de View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    74eb4db View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    f00ed42 View commit details
    Browse the repository at this point in the history

Commits on Jul 9, 2024

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

Commits on Jul 10, 2024

  1. Fix a clippy warning

    ramnivas committed Jul 10, 2024
    Configuration menu
    Copy the full SHA
    0fa3247 View commit details
    Browse the repository at this point in the history

Commits on Jul 13, 2024

  1. Merge pull request sfackler#1147 from exograph/exograph

    Work with pools that don't support prepared statements
    sfackler authored Jul 13, 2024
    Configuration menu
    Copy the full SHA
    257bcfd View commit details
    Browse the repository at this point in the history

Commits on Jul 14, 2024

  1. query_typed tweaks

    sfackler committed Jul 14, 2024
    Configuration menu
    Copy the full SHA
    71c836b View commit details
    Browse the repository at this point in the history
  2. Merge pull request sfackler#1160 from sfackler/query-typed-cleanup

    query_typed tweaks
    sfackler authored Jul 14, 2024
    Configuration menu
    Copy the full SHA
    a1bdd0b View commit details
    Browse the repository at this point in the history

Commits on Jul 22, 2024

  1. Configuration menu
    Copy the full SHA
    a0b2d70 View commit details
    Browse the repository at this point in the history
  2. Merge pull request sfackler#1162 from sfackler/transaction-builder-ca…

    …ncellation
    
    Fix cancellation of TransactionBuilder::start
    sfackler authored Jul 22, 2024
    Configuration menu
    Copy the full SHA
    4b9cdca View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    c358077 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    6b4566b View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    9226618 View commit details
    Browse the repository at this point in the history
  6. Release postgres v0.19.8

    sfackler committed Jul 22, 2024
    Configuration menu
    Copy the full SHA
    9f196e7 View commit details
    Browse the repository at this point in the history
  7. Add jiff support

    allan2 committed Jul 22, 2024
    Configuration menu
    Copy the full SHA
    6de0fce View commit details
    Browse the repository at this point in the history
  8. For query_typed, deal with the no-data case.

    If a query returns no data, we receive `Message::NoData`, which signals
    the completion of the query. However, we treated it as a no-op, leading
    to processing other messages and eventual failure.
    
    This PR fixes the issue and updates the `query_typed` tests to cover
    this scenario.
    ramnivas committed Jul 22, 2024
    Configuration menu
    Copy the full SHA
    0fc4005 View commit details
    Browse the repository at this point in the history

Commits on Jul 23, 2024

  1. Merge pull request sfackler#1165 from exograph/query-typed-no-data

    For `query_typed`, deal with the no-data case.
    sfackler authored Jul 23, 2024
    Configuration menu
    Copy the full SHA
    3afcc3d View commit details
    Browse the repository at this point in the history
  2. Support AIX keepalive

    ecnelises committed Jul 23, 2024
    Configuration menu
    Copy the full SHA
    aa10f0d View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    df2f37d View commit details
    Browse the repository at this point in the history
  4. Update impl for Timestamp

    The impl now directly computes `Timestamp` rather than going through
    `DateTime` and `Zoned`.
    allan2 committed Jul 23, 2024
    Configuration menu
    Copy the full SHA
    f00d208 View commit details
    Browse the repository at this point in the history
  5. Remove impl for Zoned

    `Timestamp` already has impl and is semantically accurate for mapping to `timestamptz`, unlike `Zoned`.
    End users can do their own conversions from `Timestamp` to `Zoned` if desired.
    allan2 committed Jul 23, 2024
    Configuration menu
    Copy the full SHA
    815a5d3 View commit details
    Browse the repository at this point in the history

Commits on Jul 24, 2024

  1. Merge pull request sfackler#1166 from ecnelises/aix

    Support AIX keepalive
    sfackler authored Jul 24, 2024
    Configuration menu
    Copy the full SHA
    d2634a4 View commit details
    Browse the repository at this point in the history

Commits on Aug 14, 2024

  1. Rename PG_EPOCH

    allan2 committed Aug 14, 2024
    Configuration menu
    Copy the full SHA
    e19b3dc View commit details
    Browse the repository at this point in the history
  2. Fix ToSql

    This sets the smallest unit to microseconds when calculating time deltas.
    
    Previously, the number of microseconds was expressed improperly because
    the rounding was not set.
    allan2 committed Aug 14, 2024
    Configuration menu
    Copy the full SHA
    c96342d View commit details
    Browse the repository at this point in the history

Commits on Aug 15, 2024

  1. Add jiff tests and overflow checks

    This adds tests in the same fashion as the existing ones for `chrono`
    and `time`.
    
    Overflow is now handled using fallible operations.
    For example, `Span:microseconds` is replaced with `Span::try_microseconds`.
    Postgres infinity values are workiing as expected.
    
    All tests are passing.
    allan2 committed Aug 15, 2024
    Configuration menu
    Copy the full SHA
    afef88e View commit details
    Browse the repository at this point in the history
  2. Remove Zoned from docs

    The implementation was previously removed as per jiff author comment.
    allan2 committed Aug 15, 2024
    Configuration menu
    Copy the full SHA
    bc9102c View commit details
    Browse the repository at this point in the history
  3. Fix chrono::DateTime<Utc> tests

    `test_date_time_params` and `test_with_special_date_time_params` could fail when run with a non-UTC system time zone.
    
    In Postgres, if no time zone is stated in the input string, then it is assumed to be in system time.
    This means that in these tests, a correctly parsed `DateTime<Utc>` could be compared to an incorrectly offset time.
    
    The offset component is now included in the test strings of these tests. This component is already present in the test strings for `time::OffsetDateTime`.
    allan2 committed Aug 15, 2024
    Configuration menu
    Copy the full SHA
    5b26b5d View commit details
    Browse the repository at this point in the history

Commits on Aug 16, 2024

  1. Merge pull request sfackler#1170 from allan2/chrono-test

    Fix `chrono::DateTime<Utc>` tests
    sfackler authored Aug 16, 2024
    Configuration menu
    Copy the full SHA
    2e6b7df View commit details
    Browse the repository at this point in the history

Commits on Aug 18, 2024

  1. Merge pull request sfackler#1164 from allan2/jiff

    Add Jiff support
    sfackler authored Aug 18, 2024
    Configuration menu
    Copy the full SHA
    6fd0444 View commit details
    Browse the repository at this point in the history

Commits on Sep 16, 2024

  1. Configuration menu
    Copy the full SHA
    b1ace91 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    776ea30 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    8d08adb View commit details
    Browse the repository at this point in the history
  4. Release postgres v0.19.9

    sfackler committed Sep 16, 2024
    Configuration menu
    Copy the full SHA
    6ae17e0 View commit details
    Browse the repository at this point in the history

Commits on Sep 26, 2024

  1. Custom patches for readyset tree

    This patch is based on tag readyset-20240301.  Previously, we
    maintained this repo as a fork and merged with upstream occasionally.
    Now we sync to upstream, discard some now unnecessary changes, and
    dump all of our custom changes into a single commit so it may be
    more easily rebased for as long as this fork may live.
    rs-sac committed Sep 26, 2024
    Configuration menu
    Copy the full SHA
    ab6d675 View commit details
    Browse the repository at this point in the history