Author: Martin Pitt <mpitt@debian.org>
Description: Use Debian alternatives for external tools instead of hardcoded programs
Forwarded: No, Debian specific

Index: postgresql-9.2/src/bin/psql/print.h
===================================================================
--- postgresql-9.2.orig/src/bin/psql/print.h	2012-05-11 00:35:09.000000000 +0200
+++ postgresql-9.2/src/bin/psql/print.h	2012-05-15 07:40:14.641599783 +0200
@@ -178,7 +178,7 @@
 extern const printTextFormat *get_line_style(const printTableOpt *opt);
 
 #ifndef __CYGWIN__
-#define DEFAULT_PAGER "more"
+#define DEFAULT_PAGER "/usr/bin/pager"
 #else
 #define DEFAULT_PAGER "less"
 #endif
Index: postgresql-9.2/src/bin/psql/settings.h
===================================================================
--- postgresql-9.2.orig/src/bin/psql/settings.h	2012-05-11 00:35:09.000000000 +0200
+++ postgresql-9.2/src/bin/psql/settings.h	2012-05-15 07:40:14.645599783 +0200
@@ -19,8 +19,8 @@
 #define DEFAULT_EDITOR	"notepad.exe"
 /* no DEFAULT_EDITOR_LINENUMBER_ARG for Notepad */
 #else
-#define DEFAULT_EDITOR	"vi"
-#define DEFAULT_EDITOR_LINENUMBER_ARG "+"
+#define DEFAULT_EDITOR	"sensible-editor"
+/*#define DEFAULT_EDITOR_LINENUMBER_ARG "+"*/
 #endif
 
 #define DEFAULT_PROMPT1 "%/%R%# "
