Re: psql: Allow editing query results with \gedit

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: psql: Allow editing query results with \gedit
Дата
Msg-id 3798850.1705946680@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: psql: Allow editing query results with \gedit  (Pavel Stehule <pavel.stehule@gmail.com>)
Ответы Re: psql: Allow editing query results with \gedit
Список pgsql-hackers
Pavel Stehule <pavel.stehule@gmail.com> writes:
> I would have forms like FoxPro, I would have a grid like FoxPro, but not in
> psql, and I would not develop it :-)

Yeah, that's something that was also bothering me, but I failed to
put my finger on it.  "Here's some JSON, edit it, and don't forget
to keep the quoting correct" does not strike me as a user-friendly
way to adjust data content.  A spreadsheet-like display where you
can change data within cells seems like a far better API, although
I don't want to write that either.

This kind of API would not readily support INSERT or DELETE cases, but
TBH I think that's better anyway --- you're adding too much ambiguity
in pursuit of a very secondary use-case.  The stated complaint was
"it's too hard to build UPDATE commands", which I can sympathize with.

(BTW, I wonder how much of this already exists in pgAdmin.)

            regards, tom lane



В списке pgsql-hackers по дате отправления:

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: Teach predtest about IS [NOT] proofs
Следующее
От: Tom Lane
Дата:
Сообщение: Re: Permute underscore separated components of columns before fuzzy matching