-
Notifications
You must be signed in to change notification settings - Fork 18
/
Copy pathhexedit.cfg
62 lines (53 loc) · 2.38 KB
/
hexedit.cfg
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
#!/bin/bash
#
# Configuration for convenience bash scripts
# Specify wxHexEditor path here:
export HEXEDITOR="../wxHexEditor/wxHexEditor"
# Only blocks in the range $MIN_BLOCK_TAGS - $MAX_BLOCK_TAGS receive tags:
# (Note that setting MIN_BLOCK_TAGS to anything other than 0 will prevent the
# psql remote download fallback from being used. This is due to an
# implementation restriction that may be lifted in the future.)
export MIN_BLOCK_TAGS=0
export MAX_BLOCK_TAGS=200
# Sets BytesPerLineLimit:
export BYTES_PER_LINE_LIMIT=32
# Sets FontSize -- value of 8 works well on high resolution displays:
export FONTSIZE=10
# psql can pick up these environment variables (see
# https://www.postgresql.org/docs/current/static/libpq-envars.html):
#export PGDATABASE="regression"
#export PGUSER="postgres"
#export PGPASSWORD="password"
#export PGHOST=localhost
#export PGPORT=5432
# -x flag in $EXTRAFLAGS: Don't emit annotations for pages where the page
# header LSN is before argument.
#
# This is helpful when you want to limit the overhead of tags by excluding all
# pages from the target relation that were not modified recently.
#
# Tip: The latest checkpoint's REDO location can be a helpful generic cutoff
# point. Run pg_controldata to get this information:
#
# $ pg_controldata $PGDATA | grep location
#
# In most scenarios where pg_hexedit is used to debug an issue (or learn about
# some aspect of Postgres internals), you will probably only need to figure out
# a cutoff LSN once, before you really begin work. From there you can
# continually make changes to the relation (e.g. from a psql session running
# DML statements), while still only seeing annotations for newly modified
# pages when pg_hexedit is invoked and reinvoked.
#
# (Of course you'll have to issue manual CHECKPOINT statements to make sure
# that the changes make it out to the FS each time, before reruninng/reinvoking
# the convenience script you're using .)
#
# Tip: Cases with "sparse" tags are often easier to navigate using the TAG
# panel in wxHexEditor -- click "View -> TAG Panel" to see it
#export EXTRAFLAGS="-x 0/167F070"
# -l flag in $EXTRAFLAGS: Only emit whole-page annotations for leaf pages.
#
# Leaf pages are typically the great majority within nbtree, GiST, GIN, or
# SP-GiST index relations. This option is useful with larger indexes in cases
# where only the root and other internal pages are of interest.
#export EXTRAFLAGS="-l"