When I run \e
on the command line while logged into the psql
command line tool, my default editor, sublime text, duitifully opens. However, when I type in a query like this:
create table tutorials (
tutorial_id serial primary key,
title text,
author_id integer references authors(author_id)
);
Then hit save and exit, nothing happens! My query is not run. What am I doing wrong? How do I fix this?
\g
to execute te query in the buffer (or\e
to edit again ;-) – joop 2 days ago