hacking postgresql with eclipse
play

Hacking PostgreSQL with Eclipse Metin Dl metin@citusdata.com - PowerPoint PPT Presentation

Hacking PostgreSQL with Eclipse Metin Dl metin@citusdata.com PGCONF.EU 2017 1 Motivation Postgres cant do everything You can extend it Eclipse makes it easy 2 Extensions postGIS - Spatial and Geographic objects pg_cron - Run


  1. Hacking PostgreSQL with Eclipse Metin Döşlü metin@citusdata.com PGCONF.EU 2017 1

  2. Motivation Postgres can’t do everything You can extend it Eclipse makes it easy 2

  3. Extensions postGIS - Spatial and Geographic objects pg_cron - Run periodic jobs hll - HyperLogLog (approximate distinct count) citus - Scale across multiple machines 3

  4. Personal Story Distributed PostgreSQL PostgreSQL Extension 4

  5. Why Eclipse? Start Fast Easy Navigation Rich Features 5

  6. Demo Outline PostgreSQL Inside Eclipse Walking Around Deep Dive 6

  7. Demo Outline PostgreSQL Inside Eclipse Walking Around Deep Dive 7

  8. Build PostgreSQL ./configure CFLAGS=-"O0 -g" make -s -j4 sudo make install 8

  9. Import PostgreSQL into Eclipse File -> Import C/C++ -> Existing Code as Makefile Project Turn off scalability mode (optional) 9

  10. Demo Outline PostgreSQL Inside Eclipse Walking Around Deep Dive 10

  11. Attach GDB select pg_backend_pid(); Debug As -> Debug Configurations C/C++ Attach to Application 11

  12. PostgreSQL Data Structures Variables window p pprint(parse) printf "%s", pretty_format_node_dump(nodeToString(parse)) Preferences -> C/C++ -> Debug -> GDB -> Check “Show the GDB traces...” 12

  13. Errors errstart() in elog.c if (elevel >= ERROR) 13

  14. Crashes pg_crasher 14

  15. Demo Outline PostgreSQL Inside Eclipse Walking Around Deep Dive 15

  16. Gatekeeper watch 16

  17. Demo Outline PostgreSQL Inside Eclipse Walking Around Deep Dive 17

  18. Summary Postgres can’t do everything You can extend Eclipse makes it easy 18

  19. Hacking PostgreSQL with Eclipse Metin Döşlü metin@citusdata.com PGCONF.EU 2017 19

Download Presentation
Download Policy: The content available on the website is offered to you 'AS IS' for your personal information and use only. It cannot be commercialized, licensed, or distributed on other websites without prior consent from the author. To download a presentation, simply click this link. If you encounter any difficulties during the download process, it's possible that the publisher has removed the file from their server.

Recommend


More recommend