Database Reference
In-Depth Information
The following is the content of Makefile :
CC=gcc
POSTGRESQL_INCLUDE=/usr/local/pgsql.master/include
POSTGRESQL_LIB=/usr/local/pgsql.master/lib
CFLAGS=-I$(POSTGRESQL_INCLUDE)
LD_FLAGS=-L$(POSTGRESQL_LIB)
imp_exp:
$(CC) imp_exp.c -o imp_exp $(CFLAGS) $(LD_FLAGS) -lpq
read_write:
$(CC) read_write.c -o read_write $(CFLAGS) $(LD_FLAGS) -
lpq
clean:
rm -rf *.o imp_exp read_write
Summary
This chapter has tried to build your clear concepts about PostgreSQL large objects,
their usage, and implementation. You not only learned why and when to use large
objects, but got hands-on practice on how to use them as well. Accessing them
through libpq (C-based) client interface library has widened your scope for large
object access and strengths of libpq . In fact, a whole chapter is designed to explain
libpq in much detail, and the good news is, this is the next chapter!
 
Search WWH ::




Custom Search