Skip to content

Release steampipe-postgres-fdw v2.1.0 #577

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

Merged
merged 4 commits into from
Jul 10, 2025
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: 4 additions & 4 deletions .github/workflows/buildimage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ jobs:
- name: Setup Golang
uses: actions/setup-go@0aaccfd150d50ccaeb58ebd88d36e91967a5f35b # v5.4.0
with:
go-version: 1.22
go-version: 1.24

- name: Fetching Go Cache Paths
id: go-cache-paths
Expand Down Expand Up @@ -162,7 +162,7 @@ jobs:
- name: Setup Golang
uses: actions/setup-go@0aaccfd150d50ccaeb58ebd88d36e91967a5f35b # v5.4.0
with:
go-version: 1.22
go-version: 1.24

- name: Fetching Go Cache Paths
id: go-cache-paths
Expand Down Expand Up @@ -248,7 +248,7 @@ jobs:
- name: Setup GoLang
uses: actions/setup-go@0aaccfd150d50ccaeb58ebd88d36e91967a5f35b # v5.4.0
with:
go-version: 1.22
go-version: 1.24

- name: Fetching Go Cache Paths
id: go-cache-paths
Expand Down Expand Up @@ -333,7 +333,7 @@ jobs:
- name: Setup GoLang
uses: actions/setup-go@0aaccfd150d50ccaeb58ebd88d36e91967a5f35b # v5.4.0
with:
go-version: 1.22
go-version: 1.24

- name: Fetching Go Cache Paths
id: go-cache-paths
Expand Down
12 changes: 8 additions & 4 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
- name: Set up Go
uses: actions/setup-go@0aaccfd150d50ccaeb58ebd88d36e91967a5f35b # v5.4.0
with:
go-version: 1.22
go-version: 1.24

- name: golangci-lint
uses: golangci/golangci-lint-action@55c2c1448f86e01eaae002a5a3a9624417608d84 # v6.5.2
Expand All @@ -30,7 +30,7 @@ jobs:
- name: Set up Go
uses: actions/setup-go@0aaccfd150d50ccaeb58ebd88d36e91967a5f35b # v5.4.0
with:
go-version: 1.22
go-version: 1.24

- name: Checkout Steampipe
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
Expand Down Expand Up @@ -65,17 +65,19 @@ jobs:
ls /home/runner/work/steampipe-postgres-fdw/steampipe-postgres-fdw
cd /home/runner/work/steampipe-postgres-fdw/steampipe-postgres-fdw/steampipe
go get
go build -o /home/runner/steampipe
go build -o /home/runner/steampipe -ldflags "-X main.version=0.0.0-dev.0"

- name: Run steampipe
run: |
steampipe --version
steampipe query "select 1 as col"

- name: Checkout FDW
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
with:
repository: turbot/steampipe-postgres-fdw
path: steampipe-postgres-fdw
ref: ${{ github.event.ref }}

- name: Setup apt-get
run: |-
Expand Down Expand Up @@ -131,7 +133,9 @@ jobs:
bats-version: 1.2.1

- name: Install Chaos plugin from registry
run: steampipe plugin install chaos
run: |
steampipe query "select 1 as a"
steampipe plugin install chaos

- name: Go install jd
run: |
Expand Down
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
## v2.1.0 [2025-07-09]
_Whats new_
- Bump module to v2 and update Go version to 1.24.

_Bug fixes_
- Fix build failure caused by incorrect %s format verb for metadataCount (int). ([#566](https://github.com/turbot/steampipe-postgres-fdw/pull/566))

## v2.0.0 [2025-06-11]
_Breaking changes_
- Increased minimum required `glibc` version to `2.34` due to upgrading the Linux build environment from Ubuntu 20.04 to Ubuntu 22.04 GitHub runners. As a result, the FDW no longer supports older Linux distributions such as Ubuntu 20.04 and Amazon Linux 2.
Expand Down
4 changes: 2 additions & 2 deletions exec.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ import (
"sync"
"unsafe"

"github.com/turbot/steampipe-postgres-fdw/hub"
"github.com/turbot/steampipe-postgres-fdw/types"
"github.com/turbot/steampipe-postgres-fdw/v2/hub"
"github.com/turbot/steampipe-postgres-fdw/v2/types"
)

type ExecState struct {
Expand Down
12 changes: 5 additions & 7 deletions fdw.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,6 @@ package main
#include "nodes/pg_list.h"
#include "utils/timestamp.h"

static Name deserializeDeparsedSortListCell(ListCell *lc);

*/
import "C"

Expand All @@ -28,11 +26,11 @@ import (
"github.com/turbot/steampipe-plugin-sdk/v5/grpc/proto"
"github.com/turbot/steampipe-plugin-sdk/v5/logging"
"github.com/turbot/steampipe-plugin-sdk/v5/sperr"
"github.com/turbot/steampipe-postgres-fdw/hub"
"github.com/turbot/steampipe-postgres-fdw/types"
"github.com/turbot/steampipe-postgres-fdw/version"
"github.com/turbot/steampipe/pkg/cmdconfig"
"github.com/turbot/steampipe/pkg/constants"
"github.com/turbot/steampipe-postgres-fdw/v2/hub"
"github.com/turbot/steampipe-postgres-fdw/v2/types"
"github.com/turbot/steampipe-postgres-fdw/v2/version"
"github.com/turbot/steampipe/v2/pkg/cmdconfig"
"github.com/turbot/steampipe/v2/pkg/constants"
)

var logger hclog.Logger
Expand Down
48 changes: 24 additions & 24 deletions go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module github.com/turbot/steampipe-postgres-fdw
module github.com/turbot/steampipe-postgres-fdw/v2

go 1.23.2
go 1.24

toolchain go1.24.1

Expand All @@ -10,20 +10,20 @@ require (
github.com/hashicorp/go-hclog v1.6.3
github.com/hashicorp/go-version v1.7.0 // indirect
github.com/turbot/go-kit v1.3.0
github.com/turbot/steampipe v1.1.3
github.com/turbot/steampipe-plugin-sdk/v5 v5.11.5
github.com/turbot/steampipe-plugin-sdk/v5 v5.12.0
go.opentelemetry.io/otel v1.35.0
google.golang.org/protobuf v1.36.6
)

require (
github.com/Masterminds/semver/v3 v3.3.1
github.com/turbot/pipe-fittings/v2 v2.3.6
github.com/turbot/pipe-fittings/v2 v2.5.0
github.com/turbot/steampipe/v2 v2.1.0-rc.2
go.opentelemetry.io/otel/metric v1.35.0
)

require (
cel.dev/expr v0.20.0 // indirect
cel.dev/expr v0.23.0 // indirect
cloud.google.com/go v0.120.0 // indirect
cloud.google.com/go/auth v0.15.0 // indirect
cloud.google.com/go/auth/oauth2adapt v0.2.7 // indirect
Expand All @@ -32,7 +32,7 @@ require (
cloud.google.com/go/monitoring v1.24.0 // indirect
cloud.google.com/go/storage v1.51.0 // indirect
github.com/AdaLogics/go-fuzz-headers v0.0.0-20240806141605-e8a1dd7889d6 // indirect
github.com/GoogleCloudPlatform/opentelemetry-operations-go/detectors/gcp v1.26.0 // indirect
github.com/GoogleCloudPlatform/opentelemetry-operations-go/detectors/gcp v1.27.0 // indirect
github.com/GoogleCloudPlatform/opentelemetry-operations-go/exporter/metric v0.51.0 // indirect
github.com/GoogleCloudPlatform/opentelemetry-operations-go/internal/resourcemapping v0.51.0 // indirect
github.com/apparentlymart/go-textseg/v15 v15.0.0 // indirect
Expand All @@ -52,7 +52,7 @@ require (
github.com/aws/smithy-go v1.22.3 // indirect
github.com/bgentry/go-netrc v0.0.0-20140422174119-9fd32a8b3d3d // indirect
github.com/briandowns/spinner v1.23.2 // indirect
github.com/cncf/xds/go v0.0.0-20250121191232-2f005788dc42 // indirect
github.com/cncf/xds/go v0.0.0-20250326154945-ae57f3c0d45f // indirect
github.com/containerd/errdefs v1.0.0 // indirect
github.com/containerd/log v0.1.0 // indirect
github.com/containerd/platforms v0.2.1 // indirect
Expand All @@ -66,12 +66,12 @@ require (
github.com/gabriel-vasile/mimetype v1.4.8 // indirect
github.com/go-git/gcfg v1.5.1-0.20230307220236-3a3c6141e376 // indirect
github.com/go-git/go-billy/v5 v5.6.2 // indirect
github.com/go-git/go-git/v5 v5.15.0 // indirect
github.com/go-git/go-git/v5 v5.16.2 // indirect
github.com/go-jose/go-jose/v4 v4.0.5 // indirect
github.com/go-playground/locales v0.14.1 // indirect
github.com/go-playground/universal-translator v0.18.1 // indirect
github.com/go-playground/validator/v10 v10.25.0 // indirect
github.com/go-viper/mapstructure/v2 v2.2.1 // indirect
github.com/go-viper/mapstructure/v2 v2.3.0 // indirect
github.com/goccy/go-yaml v1.16.0 // indirect
github.com/golang/mock v1.6.0 // indirect
github.com/google/s2a-go v0.1.9 // indirect
Expand Down Expand Up @@ -106,18 +106,18 @@ require (
github.com/ulikunitz/xz v0.5.12 // indirect
github.com/zeebo/errs v1.4.0 // indirect
go.opentelemetry.io/auto/sdk v1.1.0 // indirect
go.opentelemetry.io/contrib/detectors/gcp v1.34.0 // indirect
go.opentelemetry.io/contrib/detectors/gcp v1.35.0 // indirect
go.opentelemetry.io/contrib/instrumentation/google.golang.org/grpc/otelgrpc v0.60.0 // indirect
go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.60.0 // indirect
go.uber.org/mock v0.4.0 // indirect
go.uber.org/multierr v1.11.0 // indirect
golang.org/x/mod v0.24.0 // indirect
golang.org/x/term v0.31.0 // indirect
golang.org/x/mod v0.25.0 // indirect
golang.org/x/term v0.32.0 // indirect
golang.org/x/time v0.11.0 // indirect
golang.org/x/tools v0.31.0 // indirect
golang.org/x/tools v0.33.0 // indirect
google.golang.org/api v0.227.0 // indirect
google.golang.org/genproto/googleapis/api v0.0.0-20250313205543-e70fdf4c4cb4 // indirect
google.golang.org/genproto/googleapis/rpc v0.0.0-20250313205543-e70fdf4c4cb4 // indirect
google.golang.org/genproto/googleapis/api v0.0.0-20250324211829-b45e905df463 // indirect
google.golang.org/genproto/googleapis/rpc v0.0.0-20250324211829-b45e905df463 // indirect
gopkg.in/warnings.v0 v0.1.2 // indirect
oras.land/oras-go/v2 v2.5.0 // indirect
sigs.k8s.io/yaml v1.4.0 // indirect
Expand All @@ -138,7 +138,7 @@ require (
github.com/danwakefield/fnmatch v0.0.0-20160403171240-cbb64ac3d964 // indirect
github.com/dustin/go-humanize v1.0.1 // indirect
github.com/fatih/color v1.18.0 // indirect
github.com/fsnotify/fsnotify v1.8.0 // indirect
github.com/fsnotify/fsnotify v1.9.0 // indirect
github.com/gertd/go-pluralize v0.2.1
github.com/ghodss/yaml v1.0.0 // indirect
github.com/go-logr/logr v1.4.2 // indirect
Expand Down Expand Up @@ -190,7 +190,7 @@ require (
github.com/spf13/afero v1.14.0 // indirect
github.com/spf13/cast v1.7.1 // indirect
github.com/spf13/pflag v1.0.6 // indirect
github.com/spf13/viper v1.20.0 // indirect
github.com/spf13/viper v1.20.1 // indirect
github.com/stevenle/topsort v0.2.0 // indirect
github.com/subosito/gotenv v1.6.0 // indirect
github.com/tklauser/go-sysconf v0.3.15 // indirect
Expand All @@ -207,15 +207,15 @@ require (
go.opentelemetry.io/otel/sdk/metric v1.35.0 // indirect
go.opentelemetry.io/otel/trace v1.35.0 // indirect
go.opentelemetry.io/proto/otlp v1.5.0 // indirect
golang.org/x/crypto v0.37.0 // indirect
golang.org/x/crypto v0.38.0 // indirect
golang.org/x/exp v0.0.0-20250305212735-054e65f0b394
golang.org/x/net v0.39.0 // indirect
golang.org/x/net v0.40.0 // indirect
golang.org/x/oauth2 v0.28.0 // indirect
golang.org/x/sync v0.13.0 // indirect
golang.org/x/sys v0.32.0 // indirect
golang.org/x/text v0.24.0 // indirect
golang.org/x/sync v0.15.0 // indirect
golang.org/x/sys v0.33.0 // indirect
golang.org/x/text v0.26.0 // indirect
google.golang.org/genproto v0.0.0-20250313205543-e70fdf4c4cb4 // indirect
google.golang.org/grpc v1.72.1 // indirect
google.golang.org/grpc v1.73.0 // indirect
gopkg.in/yaml.v2 v2.4.0 // indirect
gopkg.in/yaml.v3 v3.0.1 // indirect
)
Expand Down
Loading
Loading