Dynamic SQL is any SQL statement that is first built as a text string and then executed using the
EXECUTE command. An example of dynamic SQL is shown in Listing
12-1. Possibilities that are opened by using dynamic SQL are underused in most of RDBMSs, but even more so in PostgreSQL. The recommendations provided in this chapter go against the grain of what many database textbooks say, but ...