
Product
Introducing Scala and Kotlin Support in Socket
Socket now supports Scala and Kotlin, bringing AI-powered threat detection to JVM projects with easy manifest generation and fast, accurate scans.
= Tool for splitting postgresql dump in a set of files
I wish to use git or mercurial for managing my database history. Unfortunately, every single data change force them to store whole dump again. Even if you data actually not changed, rows order is not promised to be stable.
split_pgdump splits dump in a set of small sorted files, so that git could track changes only of atcually changed data.
Also, it allows rsync to effectevely transmit backup changes over network.
== Usage
Simplest example:
pg_dump my_base | split_pgdump
It produces:
dump.sql
- file with schema and psql copy instructions,
dump.sql-tables/#{table}.dat
- 'copy data' for each table in a dump,
sorted numerically (I hope, it is id
)
You can change file name by -f
option.
=== Rules
Rules are read from split.rules
file (could be changed by -r
option).
File could contain set of lines:
table_regexp {split:} {sort:}
examples: split:$field_name! split:$field_name!_$other_field! split:$client_id%00100!-$id%0025000! split:$some_field[2..-1]!/$other_field[10..30]%0005!
is space separated list of fields, optionally with options for
gnu sort
--key parameters (on my machine they are MbdfghinRrV):
sort:client_id uid
sort:client_id:n id:n
Example for redmines wiki_content_versions:
wiki_content_versions split:$page_id%0025!/$id%0000250! sort:page_id:n id:n
Either split:
or sort:
option could be skipped.
== Author and Copyright
Copyright (c) 2011 by Sokolov Yura (funny.falcon@gmail.com) Released under the same terms of license as Ruby
== Homepage
FAQs
Unknown package
We found that split_pgdump demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
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.
Product
Socket now supports Scala and Kotlin, bringing AI-powered threat detection to JVM projects with easy manifest generation and fast, accurate scans.
Application Security
/Security News
Socket CEO Feross Aboukhadijeh and a16z partner Joel de la Garza discuss vibe coding, AI-driven software development, and how the rise of LLMs, despite their risks, still points toward a more secure and innovative future.
Research
/Security News
Threat actors hijacked Toptal’s GitHub org, publishing npm packages with malicious payloads that steal tokens and attempt to wipe victim systems.