Skip to content

Commit

Permalink
readyset-psql: Pass through table OID and column ID from upstream
Browse files Browse the repository at this point in the history
Bump tokio-postgres to the version with
readysettech/rust-postgres#7 exposing the table
OID and column ID on columnns returned from upstream, and pass those
through to the psql_srv::Column we construct for queries that're proxied
upstream.

Refs: REA-3380
Change-Id: I72c7d0e21192f581cf06f49effca3be1a25c0c92
Reviewed-on: https://gerrit.readyset.name/c/readyset/+/5853
Tested-by: Buildkite CI
Reviewed-by: Jason Brown <[email protected]>
  • Loading branch information
glittershark committed Aug 23, 2023
1 parent 7f9c31a commit ad41d1c
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 10 deletions.
12 changes: 6 additions & 6 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 2 additions & 4 deletions readyset-psql/src/upstream.rs
Original file line number Diff line number Diff line change
Expand Up @@ -258,10 +258,8 @@ impl UpstreamDatabase for PostgreSqlUpstream {
Ok(Column {
name: col.name().into(),
col_type: col.type_().clone(),
// TODO: Load the following two fields from upstream, once tokio-postgres
// provides them
table_oid: None,
attnum: None,
table_oid: col.table_oid(),
attnum: col.column_id(),
})
})
.collect::<Result<Vec<_>, _>>()?,
Expand Down

0 comments on commit ad41d1c

Please sign in to comment.