db_nth_pool_name nWhat it does:
Returns the name of the pool used for the nth-nested selection (0-relative).Defined in: /web/philip/packages/acs-core/10-database-procs.tcl
Source code:
set pools [ns_db pools] if { $n >= [llength $pools] } { error "Ran out of database pools" } return [lindex $pools $n]