Questions tagged [wal]

WAL, or write-ahead log, is a form of journalling used as part of crash-safety and atomic commit support in databases like PostgreSQL and SQLite.

PostgreSQL's write-ahead log is a crucial feature that permits crash-safety and atomic commit to be implemented. It's also heavily used in PostgreSQL's point-in-time recovery, streaming replication, and archive based replication features, as well as hot physical backup.

In SQLite, the default method by which SQLite implements atomic commit and rollback is a rollback journal. Beginning with version 3.7.0, a new "Write-Ahead Log" option (hereafter referred to as "WAL") is available.

229 questions
-1
votes
1 answer

Connecting to the logical replication/streaming from node or go?

Is there a way to connect/subscribe to Postgres logical replication/streaming replication using node or go? I know its a TCP/IP connection but not exactly where to start. I also know there is a package for this, was wondering for more of a…
Minh Nguyen
  • 140
  • 7
-2
votes
1 answer

PG_WAL is very big size

I have a Postgres cluster with 3 nodes: ETCD+Patroni+Postgres13. Now there was a problem of constantly growing pg_wal folder. It now contains 5127 files. After searching the internet, I found an article advising you to pay attention to the following…
Alex1__1
  • 17
  • 6
-3
votes
1 answer

sqlite incremental data backup every 5 minute

I'm using sqlite database for storing my data, a application which keep writing to the database non-stop. (example windows perf data every 5 minutes) What I need, get all the data incremental every 5 minutes and move to some log/text file delete…
user584018
  • 10,186
  • 15
  • 74
  • 160
-4
votes
1 answer

How to activate sqlite WAL with PHP?

I write this: $db = new PDO("sqlite:$dbname"); $db->exec("PRAGMA journal_mode = WAL;"); #..... $wal_status = $db->exec("PRAGMA journal_mode;"); echo "WAL-status: ".$wal_status; The www-page says: "WAL-status: 0" ---I think…
josefus
  • 47
  • 4
1 2 3
15
16