descbuf[0] = '\0';
strcat(descbuf, "SELECT typname AS \"Type\"");
if (GetVariableBool(pset->vars, "description"))
- strcat(descbuf, ", obj_description(p.oid) as \"Description\"");
+ strcat(descbuf, ", obj_description(oid) as \"Description\"");
strcat(descbuf, "\nFROM pg_type\n"
"WHERE typrelid = 0 AND typname !~ '^_.*'\n");
if (line == NULL)
{
if (GetVariableBool(pset->vars, "echo") && !GetVariableBool(pset->vars, "quiet"))
- puts("EOF\n");
- else
- puts(""); /* put out newline */
+ puts("EOF");
+ else if (pset->cur_cmd_interactive)
+ puts(""); /* just newline */
+
eof = true;
continue;
}