https://github.com/flightaware/pltcl96
Base for standalone pl/tcl from Postgresql 9.6
https://github.com/flightaware/pltcl96
Last synced: about 2 months ago
JSON representation
Base for standalone pl/tcl from Postgresql 9.6
- Host: GitHub
- URL: https://github.com/flightaware/pltcl96
- Owner: flightaware
- Created: 2017-08-18T19:33:03.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2017-08-18T20:05:35.000Z (almost 9 years ago)
- Last Synced: 2024-11-08T21:39:22.316Z (over 1 year ago)
- Language: C
- Size: 354 KB
- Stars: 1
- Watchers: 8
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Stand-alone version of Postgres pl/tcl
This repository is meant to facilitate development and potential release of pl/tcl
features outside of the normal Postgres release process.
# Building
In order to build from this repository, you must have a checkout of the full Postgres
source code. In that checkout, make certain that you can build and run pl/tcl. IE:
```
cd src/pl/tcl
make install installcheck
```
Once you're satisfied that mainline pltcl works, switch to a checkout of this repository.
You will need to set the `top_builddir` environment variable, and then you can run make.
Unlike mainline pl/tcl, `make check` is not supported; use the installcheck target instead:
```
top_builddir=$HOME/pgsql/HEAD make installcheck
```
# Accidental use of mainline pl/tcl
Because this repository depends on the main Postgres source, it's possible to accidentally
be working with the mainline pl/tcl without realizing it. The simplest way to verify that
installcheck is running the right code is to temporarily move the original pl/tcl somewhere
else:
```
top_builddir=$HOME/pgsql/HEAD mv "$top_builddir"/src/pl/tcl ${TEMP:-/tmp}
```
NOTE: even if the mainline pltcl is accidentally being used, `make` will probably still be
working within this repository. Just because make works don't assume you have the correct
pl/tcl!
NOTE from Peter: This repo is restarting with Decibel's changes to pltcl from version 10,
applied to pltcl from version 9.6... it does not include the postgresql commit history in
https://github.com/decibel/pltcl because of my lack of git chops.