Movatterモバイル変換


[0]ホーム

URL:


Skip to content
Search Gists
Sign in Sign up

Instantly share code, notes, and snippets.

@za-arthur
za-arthur /postgres_queries.md
Last activeJune 27, 2025 10:13
PostgreSQL Queries
$select application_name,    pg_size_pretty(pg_wal_lsn_diff(pg_current_wal_lsn(), sent_lsn)) send_lag,    pg_size_pretty(pg_wal_lsn_diff(sent_lsn, replay_lsn)) replay_lag,    replay_lagfrom pg_stat_replication;$select slot_name, slot_type, active,    case when not pg_is_in_recovery() then pg_size_pretty(pg_current_wal_lsn()- restart_lsn) endas current_lag_bytes,
@za-arthur
za-arthur /bench_rsocket.py
Last activeApril 3, 2017 14:03
bench_rsocket
#!/usr/bin/env python
# encoding: utf-8
importargparse
importcsv
importdatetime
importos
importparamiko
importre
importsubprocess
@za-arthur
za-arthur /FTS in nutshell.md
Last activeFebruary 21, 2017 15:54
Meetup sai.msu.ru. FTS.
psql apod < scripts/apod.dump

Install dictionaries

CREATE EXTENSION hunspell_en_us;CREATE EXTENSION hunspell_ru_ru;

[8]ページ先頭

©2009-2025 Movatter.jp