![Oracle Drags Its Feet in the JavaScript Trademark Dispute](https://cdn.sanity.io/images/cgdhsj6q/production/919c3b22c24f93884c548d60cbb338e819ff2435-1024x1024.webp?w=400&fit=max&auto=format)
Security News
Oracle Drags Its Feet in the JavaScript Trademark Dispute
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
zgo.at/pg_info
pg_info makes it a bit easier to access the various pg_stat_*
informational
tables in PostgreSQL for getting metrics and such.
This is really unfinished and very much work-in-progress. You almost certainly don't want to use this yet.
Compile from source with go get zgo.at/pg_info/cmd/pg_info
; this will put the
binary in ~/go/bin
.
There are three ways to use this: as a web interface, a CLI program, or by plugging it in to an existing Go web app:
$ pg_info serve -db '...'
The -db
flag:
-db "dbname=goatcounter_paths sslmode=disable"
-db "postgres://host/db"
See pg_info help serve
for some more details and flags.
Note: this isn't really usable yet; most of the focus is on the web interface for now.
$ EXPORT PGINFO_DB='...' # Set a default for the -db flag
$ pg_info tables # Table overview.
$ pg_info tables -table foo -detail # List all columns for "foo".
$ pg_info activity # pg_stat_activity.
$ pg_info pev 'select 1'
$ pg_info pev < query.sql
See pg_info help
for some more commands and options for various commands.
Right now it kind-of requires chi:
r := chi.NewRouter()
r.Mount("/admin/sql", pghandler.New(db))
FAQs
Unknown package
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.
Security News
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.