COMP9315 PSQL Assignment

COMP9315 PSQL Assignment

Setting Up
You ought to start this assignment with a fresh copy of PostgreSQL, without any changes that you might have made for the Prac exercises (unless these changes are trivial). Note that you only need to
configure, compile and install your PostgreSQL server once for this assignment. All subsequent compilation takes place in the sr/tutorial directory, and only requires modification of the files there.
Once you have re-installed your PostgreSQL server, you should run the following commands:
$ cd PG CODE/src/tutorial
$ cp complex.c gcoord.c
$ cp complex. source gcoord.source
Once you’ve made the gcoord. * files, you should also edit the Makefile in this directory and add the green text to the following lines:
MODULES = complex funcs gcoord
DATA_built = advanced.sql basics.sql complex.sql funcs.sql syscat.sql gcoord.sql
The rest of the work for this assignment involves editing only the gcoord. c and gcoord. source files. In order for the Makefile to work properly, you must use the identifier _OBJWD_ in the gcoord. source
file to refer to the directory holding the compiled library. You should never modify directly the gcoord. sql file produced by the Makefile. Place all of you C code in the gcoord. c file; do not create any
other *.c files.
Note that your submitted versions of gcoord. c and gcoord. source should not contain any references to the complex type. Make sure that the documentation (comments in program) describes the code
that you wrote.