mirror of https://github.com/postgres/postgres
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
29 lines
578 B
29 lines
578 B
|
28 years ago
|
/*-------------------------------------------------------------------------
|
||
|
|
*
|
||
|
|
* version.c--
|
||
|
|
* Returns the version string
|
||
|
|
*
|
||
|
|
* IDENTIFICATION
|
||
|
|
*
|
||
|
|
* $Header: /cvsroot/pgsql/src/backend/utils/adt/version.c,v 1.1 1998/04/29 12:38:05 scrappy Exp $
|
||
|
|
*
|
||
|
|
*-------------------------------------------------------------------------
|
||
|
|
*/
|
||
|
|
|
||
|
|
#include "postgres.h"
|
||
|
|
#include "version.h"
|
||
|
|
|
||
|
|
|
||
|
|
text* version(void);
|
||
|
|
|
||
|
|
text* version(void)
|
||
|
|
{
|
||
|
|
int n = strlen(PG_VERSION_STR) + VARHDRSZ;
|
||
|
|
text *ret = (text *) palloc(n);
|
||
|
|
|
||
|
|
VARSIZE(ret) = n;
|
||
|
|
strcpy(VARDATA(ret), PG_VERSION_STR);
|
||
|
|
|
||
|
|
return ret;
|
||
|
|
}
|