Re: Alternative to \copy in psql modelled after \g
Alvaro Herrera <alvherre@2ndquadrant.com>
From: Alvaro Herrera <alvherre@2ndquadrant.com>
To: Daniel Verite <daniel@manitou-mail.org>
Cc: Fabien COELHO <coelho@cri.ensmp.fr>, PostgreSQL Hackers <pgsql-hackers@lists.postgresql.org>, "David G. Johnston" <david.g.johnston@gmail.com>
Date: 2018-12-27T18:15:47Z
Lists: pgsql-hackers
On 2018-Dec-27, Daniel Verite wrote: > > Maybe I misunderstand something, as I'm not familiar with TAP tests, > but hasn't psql no such test to begin with, as opposed to the > other programs in src/bin that have a t/ directory? That's correct. psql does have some tests though, in src/test/regress/sql/psql.sql and psql_crosstab.sql. It's also tested indirectly because it's used to run all the src/test/regress files. If you want to add more tests and increase coverage, that's a good goal, but keep in mind those other files that can also be used. It doesn't all have to be TAP. Some things such as help.c, sql_help.c are hard to test. describe.c could use more coverage for sure, but lots of it is version-specific, which makes things harder. -- Álvaro Herrera https://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services
Commits
-
Fix psql's "\g target" meta-command to work with COPY TO STDOUT.
- cda1e27fb706 9.5.16 landed
- ae4c7d5ab886 9.6.12 landed
- 8e97a97b3206 10.7 landed
- 6d3ede5f1c65 12.0 landed
- 2c50c9f23d1d 11.2 landed