[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [O] patch for ob-sql and postgresql for supporting :colnames
From: |
Eric Schulte |
Subject: |
Re: [O] patch for ob-sql and postgresql for supporting :colnames |
Date: |
Wed, 08 Jan 2014 09:58:08 -0700 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux) |
Applied, thanks.
Joost Helberg <address@hidden> writes:
> hi,
>
> the :colnames header argument is not honoured for postgresql. Hence the
> following patch for ob-sql.el. The command-line tool psql supports the
> option -t for not displaying column-names. The default behavious is not
> changed with this patch.
>
> 126,127c126
> < "psql --set=\"ON_ERROR_STOP=1\" %s -A -P
> footer=off -F \"\t\" -f %s -o %s %s"
> < (if colnames-p "" "-t")
> ---
>> "psql --set=\"ON_ERROR_STOP=1\" -A -P
>> footer=off -F \"\t\" -f %s -o %s %s"
>
> Can anyone suggest to me why this should not be in ob-sql.el? It is
> already implemented for the mysql engine (via -N).
>
> regards,
>
> Joost
--
Eric Schulte
https://cs.unm.edu/~eschulte
PGP: 0x614CA05D