Обсуждение: 2014年9月12日 9:19:57 自动保存草稿

Поиск
Список
Период
Сортировка

2014年9月12日 9:19:57 自动保存草稿

От
蔡珂珂
Дата:
Dear sir or madam:
hello.I am a new postgressql user. And, now, I am studing psqlodbc.
There are some questions in my study. 
Question 1: In file psqlodbc/test/Makefile, I don't find clean target. But we can use "make clean" to clean the obejct. And in my test makefile without target clean, i could't use "make clean". How is it work?
Question 2: We use "make installcheck" for complete regression test, and the test works well. But  In file psqlodbc/test/Makefile, I only find "installcheck" and the work of creating .sql files. Now how is it work without some commands for pg_regress?
Question 3:What is their meaning and jobs, e.g REGRESS, EXTRA_CLEAN, REGRESS_OPTS?

Do I describ my question clearly, with my poor english?

Thanks a lot and look forward to hearing from you soon.
Best Regards.
Eric cai from beijing.


Re: [ODBC] 2014年9月12日 9:19:57 自动保存草稿

От
Michael Paquier
Дата:
On Fri, Sep 12, 2014 at 11:44 AM, 蔡珂珂 <caike85@126.com> wrote:
> Dear sir or madam:
> hello.I am a new postgressql user. And, now, I am studing psqlodbc.
> There are some questions in my study.
> Question 1: In file psqlodbc/test/Makefile, I don't find clean target. But
> we can use "make clean" to clean the obejct. And in my test makefile without
> target clean, i could't use "make clean". How is it work?
The Makefile in test/ uses PGXS, with is a PostgreSQL extension system
facilitating the user experience when developing an extension. The
list of objects cleaned is the combination of OBJS and REGRESS.

> Question 2: We use "make installcheck" for complete regression test, and the
> test works well. But  In file psqlodbc/test/Makefile, I only find
> "installcheck" and the work of creating .sql files. Now how is it work
> without some commands for pg_regress?
Same as above. Have a look at PGXS within PostgreSQL code, or the related docs,

> Question 3:What is their meaning and jobs, e.g REGRESS, EXTRA_CLEAN,
> REGRESS_OPTS?
Same as above.

The documentation of PGXS is here:
http://www.postgresql.org/docs/devel/static/extend-pgxs.html

> Do I describ my question clearly, with my poor english?
No problem, we all have at some point sent somewhere a first email :)
Regards,
--
Michael