You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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`
831
801
832
802
## Checked on
833
803
834
804
* 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
837
807
838
808
Compilation against PostgreSQL 10 requires libICU!
0 commit comments