# Emacs and PostgreSQL, PL line numbering

DevFeed: [Emacs and PostgreSQL, PL line numbering](<https://devfeed.tech/articles/emacs-and-postgresql-pl-line-numbering-34409.md>)

Original publisher: [Read original article](<https://tapoueh.org/blog/2011/04/emacs-and-postgresql-pl-line-numbering/>)

Author: Dimitri Fontaine PostgreSQL Major Contributor; Author

Published: 2011-04-23T08:30:00Z

Content type: tutorial

Language: en

Sources: [Dimitri Fontaine](<https://devfeed.tech/sources/dimitri-fontaine.md>)

Topics: [Emacs](<https://devfeed.tech/topics/emacs.md>), [PostgreSQL](<https://devfeed.tech/topics/postgresql.md>), [debugging](<https://devfeed.tech/topics/debugging.md>), [Extension](<https://devfeed.tech/topics/extension.md>)

Tags: [debugging](<https://devfeed.tech/tags/debugging.md>), [emacs](<https://devfeed.tech/tags/emacs.md>), [extension](<https://devfeed.tech/tags/extension.md>), [postgresql](<https://devfeed.tech/tags/postgresql.md>)

## AI overview

The article describes pgsql-linum-format, an Emacs extension that numbers PL/whatever code lines while editing. It presents line numbering as useful during debugging and mentions using el-get to install and update the extension.

## Source excerpt

A while ago I've been fixing and publishing pgsql-linum-format separately. That allows to number PL/whatever code lines when editing from Emacs, and it's something very useful to turn on when debugging. The carrets on the fringe in the emacs window are the result of (setq-default indicate-buffer-boundaries 'left) and here it's just overloading the image somehow. But the idea is to just M-x linum-mode when you need it, at least that's my usage of it.