| From: | Jim Nasby <Jim(dot)Nasby(at)BlueTreble(dot)com> |
|---|---|
| To: | Andrew Dunstan <andrew(at)dunslane(dot)net>, Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
| Cc: | Peter Geoghegan <pg(at)heroku(dot)com>, Pg Hackers <pgsql-hackers(at)postgresql(dot)org> |
| Subject: | Re: Making the regression tests halt to attach a debugger |
| Date: | 2015-05-19 23:13:45 |
| Message-ID: | 555BC3A9.1080807@BlueTreble.com |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-hackers |
On 5/18/15 12:15 PM, Andrew Dunstan wrote:
> On 05/18/2015 01:05 PM, Tom Lane wrote:
>> Meh. You could also add "select pg_backend_pid()" or some such.
>> But really, the way I generally do this is to run gdb via a script
>> that auto-attaches to the right postgres process if at all possible.
>> Removes the whole problem.
>>
>
> This should go on the wiki.
https://wiki.postgresql.org/wiki/Gdblive_script; and linked from gdb
section of Developer FAQ.
--
Jim Nasby, Data Architect, Blue Treble Consulting
Data in Trouble? Get it in Treble! http://BlueTreble.com
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Jan de Visser | 2015-05-19 23:18:17 | Re: Problems with question marks in operators (JDBC, ECPG, ...) |
| Previous Message | Andrew Dunstan | 2015-05-19 23:11:48 | Re: Bug in jsonb minus operator |