tracing: PostgeSQL connection tracing

Description Usage Arguments Details Value Author(s) Examples

Description

Functions to manage connection tracing

Usage

1
2
3
4
5
6
7

Arguments

filename

where to send the tracing

append

if true, append to existing file

remove

if true, unlink the tracing file

warn

if true, readLines will issue warnings

...

passed to readLines

Details

PostgeSQL tracing lets you observe all information passing between rpg and the database server.

trace_conn begins tracing and untrace_conn stops tracing.

dump_conn_trace invokes readLines on the trace file.

Value

trace_filename: the name of the file containing trace information.

Author(s)

Timothy H. Keitt

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
## Not run: 
createdb("rpgtesting")
connect("rpgtesting")
trace_conn()
list_tables()
dump_conn_trace(n = 40)
untrace_conn(remove = TRUE)
disconnect()
dropdb("rpgtesting")
## End(Not run)

thk686/rpg documentation built on Sept. 5, 2019, 11:13 p.m.