From nobody Wed Oct 13 19:20:18 2021 X-Original-To: dev-commits-ports-main@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 8F9C717F1FBB; Wed, 13 Oct 2021 19:20:18 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4HV2Rk3dyzz4q3r; Wed, 13 Oct 2021 19:20:18 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 5B7C12D53C; Wed, 13 Oct 2021 19:20:18 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 19DJKI0D068858; Wed, 13 Oct 2021 19:20:18 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 19DJKImO068854; Wed, 13 Oct 2021 19:20:18 GMT (envelope-from git) Date: Wed, 13 Oct 2021 19:20:18 GMT Message-Id: <202110131920.19DJKImO068854@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Po-Chuan Hsieh Subject: git: c18ccc804aee - main - databases/pg_filedump: Add pg_filedump 14.0 List-Id: Commits to the main branch of the FreeBSD ports repository List-Archive: https://lists.freebsd.org/archives/dev-commits-ports-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-ports-main@freebsd.org X-BeenThere: dev-commits-ports-main@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: sunpoet X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: c18ccc804aee20baab47775e65366100cf714bd1 Auto-Submitted: auto-generated X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by sunpoet: URL: https://cgit.FreeBSD.org/ports/commit/?id=c18ccc804aee20baab47775e65366100cf714bd1 commit c18ccc804aee20baab47775e65366100cf714bd1 Author: Po-Chuan Hsieh AuthorDate: 2021-10-13 19:10:18 +0000 Commit: Po-Chuan Hsieh CommitDate: 2021-10-13 19:10:18 +0000 databases/pg_filedump: Add pg_filedump 14.0 pg_filedump is a utility to format PostgreSQL heap/index/control files into a human-readable form. You can format/dump the files several ways, as listed in the Invocation section, as well as dumping straight binary. The type of file (heap/index) can usually be determined automatically by the content of the blocks within the file. However, to format a pg_control file you must use the -c option. The default is to format the entire file using the block size listed in block 0 and display block relative addresses. These defaults can be modified using run-time options. Some options may seem strange but they're there for a reason. For example, block size. It's there because if the header of block 0 is corrupt, you need a method of forcing a block size. WWW: https://github.com/df7cb/pg_filedump --- databases/Makefile | 1 + databases/pg_filedump/Makefile | 23 +++++++++++++++++++++++ databases/pg_filedump/distinfo | 3 +++ databases/pg_filedump/pkg-descr | 17 +++++++++++++++++ 4 files changed, 44 insertions(+) diff --git a/databases/Makefile b/databases/Makefile index fef6a340f5f1..990db008eb48 100644 --- a/databases/Makefile +++ b/databases/Makefile @@ -573,6 +573,7 @@ SUBDIR += pg_citus SUBDIR += pg_dirtyread SUBDIR += pg_ed25519 + SUBDIR += pg_filedump SUBDIR += pg_hashids SUBDIR += pg_partman SUBDIR += pg_qualstats diff --git a/databases/pg_filedump/Makefile b/databases/pg_filedump/Makefile new file mode 100644 index 000000000000..6c8a53583921 --- /dev/null +++ b/databases/pg_filedump/Makefile @@ -0,0 +1,23 @@ +# Created by: Po-Chuan Hsieh + +PORTNAME= pg_filedump +PORTVERSION= 14.0 +CATEGORIES= databases + +MAINTAINER= sunpoet@FreeBSD.org +COMMENT= Display formatted contents of a PostgreSQL heap, index, or control file + +LICENSE= GPLv2+ + +USES= gmake pgsql + +MAKE_ARGS= PG_LDFLAGS=-lintl +WANT_PGSQL= lib server + +PLIST_FILES= bin/pg_filedump + +GH_ACCOUNT= df7cb +GH_TAGNAME= REL_${PORTVERSION:R}_${PORTVERSION:E} +USE_GITHUB= yes + +.include diff --git a/databases/pg_filedump/distinfo b/databases/pg_filedump/distinfo new file mode 100644 index 000000000000..f49b168a323f --- /dev/null +++ b/databases/pg_filedump/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1634111636 +SHA256 (df7cb-pg_filedump-14.0-REL_14_0_GH0.tar.gz) = 46608d7eed343a566e58b67b31452799bb9f0083de1c7b8b2d356a4029f23fbf +SIZE (df7cb-pg_filedump-14.0-REL_14_0_GH0.tar.gz) = 30684 diff --git a/databases/pg_filedump/pkg-descr b/databases/pg_filedump/pkg-descr new file mode 100644 index 000000000000..5b4c8c15d366 --- /dev/null +++ b/databases/pg_filedump/pkg-descr @@ -0,0 +1,17 @@ +pg_filedump is a utility to format PostgreSQL heap/index/control files into a +human-readable form. You can format/dump the files several ways, as listed in +the Invocation section, as well as dumping straight binary. + +The type of file (heap/index) can usually be determined automatically by the +content of the blocks within the file. However, to format a pg_control file you +must use the -c option. + +The default is to format the entire file using the block size listed in block 0 +and display block relative addresses. These defaults can be modified using +run-time options. + +Some options may seem strange but they're there for a reason. For example, block +size. It's there because if the header of block 0 is corrupt, you need a method +of forcing a block size. + +WWW: https://github.com/df7cb/pg_filedump