Skip to content

Commit d8370ff

Browse files
authored
Update README.md
1 parent 2eb9276 commit d8370ff

File tree

1 file changed

+6
-36
lines changed

1 file changed

+6
-36
lines changed

README.md

Lines changed: 6 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -785,11 +785,6 @@ ICU support)
785785

786786
sudo apt install libicu-dev
787787

788-
## Compilation plpgsql_check on OS X
789-
790-
use `-undefined dynamic_lookup` to the last line of the `Makefile ("override CFLAGS += ...")` allowed it to build
791-
(It should not be necessary for current code).
792-
793788
## Compilation plpgsql_check on Windows
794789

795790
You can check precompiled dll libraries http://okbob.blogspot.cz/2015/02/plpgsqlcheck-is-available-for-microsoft.html
@@ -799,41 +794,16 @@ or compile by self:
799794
1. Download and install PostgreSQL for Win32 from http://www.enterprisedb.com
800795
2. Download and install Microsoft Visual C++ Express
801796
3. Lern tutorial http://blog.2ndquadrant.com/compiling-postgresql-extensions-visual-studio-windows
802-
4. The plpgsql_check depends on plpgsql and we need to add plpgsql.lib to the library list. Unfortunately PostgreSQL 9.4.3 does not contain this library.
803-
5. Create a plpgsql.lib from plpgsql.dll as described in http://adrianhenke.wordpress.com/2008/12/05/create-lib-file-from-dll (this step is not necessary now)
804-
6. Change `plpgsql_check.c` file, add `PGDLLEXPORT` line before evry extension function, as described in http://blog.2ndquadrant.com/compiling-postgresql-extensions-visual-studio-windows
805-
(Skip this step if you have a version with "plpgsql_check_builtins.h" header file).
806-
<pre>
807-
...PGDLLEXPORT
808-
Datum plpgsql_check_function_tb(PG_FUNCTION_ARGS);
809-
PGDLLEXPORT
810-
Datum plpgsql_check_function(PG_FUNCTION_ARGS);
811-
...
812-
PGDLLEXPORT
813-
Datum
814-
plpgsql_check_function(PG_FUNCTION_ARGS)
815-
{
816-
Oid funcoid = PG_GETARG_OID(0);
817-
...
818-
PGDLLEXPORT
819-
Datum
820-
plpgsql_check_function_tb(PG_FUNCTION_ARGS)
821-
{
822-
Oid funcoid = PG_GETARG_OID(0);
823-
...
824-
</pre>
825-
7. Build plpgsql_check.dll
826-
8. Install plugin
827-
1. copy `plpgsql_check.dll` to `PostgreSQL\9.3\lib`
828-
2. copy `plpgsql_check.control` and `plpgsql_check--0.8.sql` to `PostgreSQL\9.3\share\extension`
829-
830-
The points 4-6 are not necessary for current code.
797+
4. Build plpgsql_check.dll
798+
5. Install plugin
799+
1. copy `plpgsql_check.dll` to `PostgreSQL\14\lib`
800+
2. copy `plpgsql_check.control` and `plpgsql_check--2.1.sql` to `PostgreSQL\14\share\extension`
831801

832802
## Checked on
833803

834804
* gcc on Linux (against all supported PostgreSQL)
835-
* clang 3.4 on Linux (against PostgreSQL 9.5)
836-
* for success regress tests the PostgreSQL 9.5 or higher is required
805+
* clang 3.4 on Linux (against PostgreSQL 10)
806+
* for success regress tests the PostgreSQL 10 or higher is required
837807

838808
Compilation against PostgreSQL 10 requires libICU!
839809

0 commit comments

Comments
 (0)