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

Remove old pg handler #3661

Merged
merged 3 commits into from
Oct 27, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 0 additions & 8 deletions .golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,6 @@ linters-settings:
- "!**/internal/backends/sqlite/*.go"
- "!**/internal/backends/postgresql/*.go"
- "!**/internal/backends/postgresql/metadata/*.go"
- "!**/internal/handlers/pg/pgdb/*.go"
- "!**/internal/handlers/hana/hanadb/*.go"
deny:
- pkg: github.com/FerretDB/FerretDB/internal/handlers/sjson
Expand All @@ -53,13 +52,6 @@ linters-settings:
- "**/internal/backends/**/*.go"
deny:
- pkg: github.com/FerretDB/FerretDB/internal/handlers/common
pgdb:
files:
- $all
- "!**/internal/handlers/pg/*.go"
- "!**/cmd/envtool/*.go"
deny:
- pkg: github.com/FerretDB/FerretDB/internal/handlers/pg/pgdb
commonerrors:
files:
- $all
Expand Down
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,14 @@

<!-- markdownlint-disable MD024 MD034 -->

## [v1.14.0](https://github.com/FerretDB/FerretDB/releases/tag/v1.14.0) (TBD)

### What's Changed

#### Old PostgreSQL backend

Is removed.

## [v1.13.0](https://github.com/FerretDB/FerretDB/releases/tag/v1.13.0) (2023-10-23)

### What's Changed
Expand Down
1 change: 0 additions & 1 deletion CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,6 @@ The `internal` subpackages contain most of the FerretDB code:
It is used by backends and old `pg` handler.
- `handlers/sqlite` contains the implementation of the SQLite handler.
It is being converted into universal handler for all backends.
- `handlers/pg` contains the implementation of the old PostgreSQL handler.

#### Running tests

Expand Down
1 change: 0 additions & 1 deletion cmd/ferretdb/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -370,7 +370,6 @@ func run() {
EnableSortPushdown: cli.Test.EnableSortPushdown,
EnableOplog: cli.Test.EnableOplog,

UseOldPG: postgreSQLFlags.PostgreSQLOld,
UseNewHana: cli.Test.UseNewHana,
},
})
Expand Down
4 changes: 2 additions & 2 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ go 1.21

require (
github.com/AlekSi/pointer v1.2.0
github.com/SAP/go-hdb v1.5.7
github.com/SAP/go-hdb v1.5.8
github.com/alecthomas/kong v0.8.1
github.com/arl/statsviz v0.6.0
github.com/google/uuid v1.4.0
Expand All @@ -17,7 +17,6 @@ require (
github.com/prometheus/common v0.45.0
github.com/stretchr/testify v1.8.4
go.opentelemetry.io/otel v1.19.0
go.opentelemetry.io/otel/trace v1.19.0
go.uber.org/zap v1.26.0
golang.org/x/crypto v0.14.0 // indirect; always use @latest
golang.org/x/crypto/x509roots/fallback v0.0.0-20231024071259-cf8dcb0f7d1e
Expand All @@ -43,6 +42,7 @@ require (
github.com/prometheus/procfs v0.12.0 // indirect
github.com/remyoudompheng/bigfft v0.0.0-20230129092748-24d4a6f8daec // indirect
go.opentelemetry.io/otel/metric v1.19.0 // indirect
go.opentelemetry.io/otel/trace v1.19.0 // indirect
go.uber.org/multierr v1.10.0 // indirect
golang.org/x/mod v0.13.0 // indirect
golang.org/x/sync v0.4.0 // indirect
Expand Down
4 changes: 2 additions & 2 deletions go.sum
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
github.com/AlekSi/pointer v1.2.0 h1:glcy/gc4h8HnG2Z3ZECSzZ1IX1x2JxRVuDzaJwQE0+w=
github.com/AlekSi/pointer v1.2.0/go.mod h1:gZGfd3dpW4vEc/UlyfKKi1roIqcCgwOIvb0tSNSBle0=
github.com/SAP/go-hdb v1.5.7 h1:a3gN7JJj02O3EkTX/GFMsZ9CR0C7I+LTK9+yeF8Jmco=
github.com/SAP/go-hdb v1.5.7/go.mod h1:t53ajMEV43IrGUgNBtYAy6gRxcGLe3de+meYoHBtkIo=
github.com/SAP/go-hdb v1.5.8 h1:X1iZsafvuvg4sFdKD1vS5tDMQmEVXwjdnXgioGU18A4=
github.com/SAP/go-hdb v1.5.8/go.mod h1:WgYcu6vgcCsFcmwM6U1cJkc6F0X+kNgh8BSQx8JrjNo=
github.com/alecthomas/assert/v2 v2.1.0 h1:tbredtNcQnoSd3QBhQWI7QZ3XHOVkw1Moklp2ojoH/0=
github.com/alecthomas/assert/v2 v2.1.0/go.mod h1:b/+1DI2Q6NckYi+3mXyH3wFb8qG37K/DuK80n7WefXA=
github.com/alecthomas/kong v0.8.1 h1:acZdn3m4lLRobeh3Zi2S2EpnXTd1mOL6U7xVml+vfkY=
Expand Down
2 changes: 1 addition & 1 deletion integration/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ require (
)

require (
github.com/SAP/go-hdb v1.5.7 // indirect
github.com/SAP/go-hdb v1.5.8 // indirect
github.com/arl/statsviz v0.6.0 // indirect
github.com/beorn7/perks v1.0.1 // indirect
github.com/cenkalti/backoff/v4 v4.2.1 // indirect
Expand Down
4 changes: 2 additions & 2 deletions integration/go.sum
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
github.com/AlekSi/pointer v1.2.0 h1:glcy/gc4h8HnG2Z3ZECSzZ1IX1x2JxRVuDzaJwQE0+w=
github.com/AlekSi/pointer v1.2.0/go.mod h1:gZGfd3dpW4vEc/UlyfKKi1roIqcCgwOIvb0tSNSBle0=
github.com/SAP/go-hdb v1.5.7 h1:a3gN7JJj02O3EkTX/GFMsZ9CR0C7I+LTK9+yeF8Jmco=
github.com/SAP/go-hdb v1.5.7/go.mod h1:t53ajMEV43IrGUgNBtYAy6gRxcGLe3de+meYoHBtkIo=
github.com/SAP/go-hdb v1.5.8 h1:X1iZsafvuvg4sFdKD1vS5tDMQmEVXwjdnXgioGU18A4=
github.com/SAP/go-hdb v1.5.8/go.mod h1:WgYcu6vgcCsFcmwM6U1cJkc6F0X+kNgh8BSQx8JrjNo=
github.com/arl/statsviz v0.6.0 h1:jbW1QJkEYQkufd//4NDYRSNBpwJNrdzPahF7ZmoGdyE=
github.com/arl/statsviz v0.6.0/go.mod h1:0toboo+YGSUXDaS4g1D5TVS4dXs7S7YYT5J/qnW2h8s=
github.com/beorn7/perks v1.0.1 h1:VlbKKnNfV8bJzeqoa4cOKqO6bYr3WgKZxO8Z16+hsOM=
Expand Down
85 changes: 0 additions & 85 deletions internal/handlers/pg/cmd_query.go

This file was deleted.

Loading
Loading