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
  • Loading branch information
glittershark committed Aug 22, 2023
1 parent ae5b696 commit 7dc4e6f
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 7dc4e6f

Please sign in to comment.