|
| 1 | +%global pgmajorversion 19 |
| 2 | +%global pginstdir /usr/pgsql-19 |
| 3 | +%global sname plpgsql_check |
| 4 | + |
| 5 | +Name: %{sname}_%{pgmajorversion} |
| 6 | +Version: 2.8.1 |
| 7 | +Release: 1%{?dist} |
| 8 | +Summary: Additional tools for plpgsql functions validation |
| 9 | + |
| 10 | +Group: Applications/Databases |
| 11 | +License: BSD |
| 12 | +URL: https://github.com/okbob/plpgsql_check/archive/v%{version}.zip |
| 13 | +Source0: plpgsql_check-%{version}.zip |
| 14 | +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) |
| 15 | + |
| 16 | +BuildRequires: postgresql%{pgmajorversion}-devel |
| 17 | +Requires: postgresql%{pgmajorversion} |
| 18 | + |
| 19 | +%description |
| 20 | +The plpgsql_check is PostgreSQL extension with functionality for direct |
| 21 | +or indirect extra validation of functions in plpgsql language. It verifies |
| 22 | +a validity of SQL identifiers used in plpgsql code. It try to identify |
| 23 | +a performance issues. |
| 24 | + |
| 25 | +%prep |
| 26 | +%setup -q -n %{sname}-%{version} |
| 27 | + |
| 28 | + |
| 29 | +%build |
| 30 | +PATH="%{pginstdir}/bin;$PATH" ; export PATH |
| 31 | +CFLAGS="${CFLAGS:-%optflags}" ; export CFLAGS |
| 32 | +make USE_PGXS=1 PG_CONFIG=%{pginstdir}/bin/pg_config %{?_smp_mflags} |
| 33 | + |
| 34 | +%install |
| 35 | +rm -rf %{buildroot} |
| 36 | +make install DESTDIR=%{buildroot} PG_CONFIG=%{pginstdir}/bin/pg_config %{?_smp_mflags} |
| 37 | + |
| 38 | +%clean |
| 39 | +rm -rf %{buildroot} |
| 40 | + |
| 41 | +%files |
| 42 | +%defattr(644,root,root,755) |
| 43 | +%doc README.md |
| 44 | +%{pginstdir}/lib/plpgsql_check.so |
| 45 | +%{pginstdir}/share/extension/plpgsql_check--2.1.sql |
| 46 | +%{pginstdir}/share/extension/plpgsql_check.control |
| 47 | +%{pginstdir}/lib/bitcode/*.bc |
| 48 | +%{pginstdir}/lib/bitcode/plpgsql_check/src/*.bc |
| 49 | +%{pginstdir}/share/extension/*.control |
| 50 | + |
| 51 | +%changelog |
| 52 | +* Tue Mar 18 2025 - Pavel Stehule <pavel.stehule@gmail.com> 2.8.0 |
| 53 | +- remove support for PostgreSQL 12 and 13 |
| 54 | + |
| 55 | +* Wed Dec 6 2023 - Pavel Stehule <pavel.stehule@gmail.com> 2.7.0 |
| 56 | +- unclosed cursors detection |
| 57 | + |
| 58 | +* Tue Oct 31 2023 - Pavel Stehule <pavel.stehule@gmail.com> 2.6.0 |
| 59 | +- simple constant tracing support |
| 60 | + |
| 61 | +* Sat Apr 29 2023 - Pavel Stehule <pavel.stehule@gmail.com> 2.4.0 |
| 62 | +- remove support for PostgreSQL 10 and 11 |
| 63 | + |
| 64 | +* Wed Jan 11 2023 - Pavel Stehule <pavel.stehule@gmail.com> 2.3.0 |
| 65 | +- possibility to detect compatibility issues (obsolete setting of refcursor) |
| 66 | + |
| 67 | +* Tue Sep 20 2022 - Pavel Stehule <pavel.stehule@gmail.com> 2.2.0 |
| 68 | +- possibility to use in comment options |
| 69 | + |
| 70 | +* Wed Dec 29 2021 - Pavel Stehule <pavel.stehule@gmail.com> 2.1.0 |
| 71 | +- possibility to count statement's aborted execution |
| 72 | +- possibility to count "unfinished" statements due exception |
| 73 | + |
| 74 | +* Mon Sep 27 2021 - Pavel Stehule <pavel.stehule@gmail.com> 2.0.0 |
| 75 | +- pragma type for setting type to record variable |
| 76 | +- pragma table for creating ephemeral table |
| 77 | + |
| 78 | +* Mon Jun 21 2021 - Pavel Stehule <pavel.stehule@gmail.com> 1.17.0 |
| 79 | +- remove support for PostgreSQL 9.5 and 9.6 |
| 80 | + |
| 81 | +* Sat Mar 6 2021 - Pavel Stehule <pavel.stehule@gmail.com> 1.16.0 |
| 82 | +- plpgsql_profiler_functions_all |
| 83 | + |
| 84 | +* Mon Nov 16 2020 - Pavel Stehule <pavel.stehule@gmail.com> 1.14.0 |
| 85 | +- queryid can be displayed in profiler's reports (Julien Rouhaud) |
| 86 | +- new profiler's GUC plpgsql_check.profiler_max_shared_chunks (Julien Rouhaud) |
| 87 | +- few minor bugfixes |
| 88 | + |
| 89 | +* Fri Aug 14 2020 - Pavel Stehule <pavel.stehule@gmail.com> 1.13.0 |
| 90 | +- tracer |
| 91 | +- pragma support to control checks, warnings and tracing |
| 92 | + |
| 93 | +* Thu Jul 2 2020 - Pavel STEHULE <pavel.stehule@gmail.com> 1.11.0 |
| 94 | +- possibility to check functions with arguments of polymorphic type |
| 95 | +- possibility to specify type used as real type instead polymorphic type |
| 96 | + |
| 97 | +* Fri Jun 05 2020 - Pavel STEHULE <pavel.stehule@gmail.com> 1.10.0 |
| 98 | +- deduction record type structure from result of polymorphic function |
| 99 | + |
| 100 | +* Mon Apr 27 2020 - Pavel STEHULE <pavel.stehule@gmail.com> 1.9.1 |
| 101 | +- minor bugfixes |
| 102 | + |
| 103 | +* Mon Mar 30 2020 - Pavel STEHULE <pavel.stehule@gmail.com> 1.9.0 |
| 104 | +- statement and branch coverage metrics |
| 105 | +- remove support for Postgres 9.4 |
| 106 | + |
| 107 | +* Mon Jan 06 2020 - Pavel STEHULE <pavel.stehule@gmail.com> 1.8.2 |
| 108 | +- fix of compilation issue |
| 109 | + |
| 110 | +* Sun Jan 05 2020 - Pavel STEHULE <pavel.stehule@gmail.com> 1.8.1 |
| 111 | +- cleaner detection function oid from name or signature |
| 112 | + |
| 113 | +* Sun Dec 29 2019 - Pavel STEHULE <pavel.stehule@gmail.com> 1.8.0 |
| 114 | +- use Postgres tool for calling functions from plpgsql library instead dynamic linking |
| 115 | +- it solve issues related to dependency plpgsq_check on plpgsql |
| 116 | + |
| 117 | +* Mon Sep 23 2019 - Pavel STEHULE <pavel.stehule@gmail.com> 1.7.6 |
| 118 | +- fix false alarm - multiple plans in EXECUTE statement, and possible crash |
| 119 | + |
| 120 | +* Tue Sep 10 2019 - Pavel STEHULE <pavel.stehule@gmail.com> 1.7.5 |
| 121 | +- allow some work on tables with rules |
| 122 | + |
| 123 | +* Wed Jul 24 2019 - Pavel STEHULE <pavel.stehule@gmail.com> 1.7.3 |
| 124 | +- profiler bugfixes |
| 125 | + |
| 126 | +* Tue May 21 2019 - Pavel STEHULE <pavel.stehule@gmail.com> 1.7.2 |
| 127 | +- profiler bugfixes |
| 128 | + |
| 129 | +* Fri Apr 26 2019 - Pavel STEHULE <pavel.stehule@gmail.com> 1.7.1 |
| 130 | +- bugfixes |
| 131 | + |
| 132 | +* Wed Apr 17 2019 - Pavel STEHULE <pavel.stehule@gmail.com> 1.7.0 |
| 133 | +- check of format of fmt string of "format" function |
| 134 | +- better check of dynamic SQL when it is const string |
| 135 | +- check of SQL injection vulnerability of stmt expression at EXECUTE stmt |
| 136 | + |
| 137 | +* Sun Dec 23 2018 - Pavel STEHULE <pavel.stehule@gmail.com> 1.4.2-1 |
| 138 | +- metada fix |
| 139 | + |
| 140 | +* Fri Dec 21 2018 - Pavel STEHULE <pavel.stehule@gmail.com> 1.4.1-1 |
| 141 | +- minor bugfixes |
| 142 | + |
| 143 | +* Sun Dec 2 2018 - Pavel STEHULE <pavel.stehule@gmail.com> 1.4.0-1 |
| 144 | +- possible to show function's dependency on functions and tables |
| 145 | +- integrated profiler |
| 146 | +- bug fixes (almost false alarms) |
| 147 | + |
| 148 | +* Wed Jun 6 2018 - Pavel STEHULE <pavel.stehule@gmail.com> 1.2.3-1 |
| 149 | +- PostgreSQL 11 support |
| 150 | +- detect hidden casts in expressions |
| 151 | + |
| 152 | +* Thu Oct 26 2017 - Pavel STEHULE <pavel.stehule@gmail.com> 1.2.2-1 |
| 153 | +- never read variables detection |
| 154 | +- fix false alarm on MOVE command |
| 155 | + |
| 156 | +* Fri Sep 15 2017 - Pavel STEHULE <pavel.stehule@gmail.com> 1.2.1-1 |
| 157 | +- missing RETURN detection |
| 158 | +- fix some bugs and false alarms |
| 159 | +- PostgreSQL 11 support |
| 160 | + |
| 161 | +* Fri Nov 11 2016 - Pavel STEHULE <pavel.stehule@gmail.com> 1.2.0-1 |
| 162 | +- support extra warnings - shadowed variables |
| 163 | + |
| 164 | +* Thu Aug 25 2016 - Pavel STEHULE <pavel.stehule@gmail.com> 1.0.5-1 |
| 165 | +- minor fixes, support for PostgreSQL 10 |
| 166 | + |
| 167 | +* Fri Apr 15 2016 - Pavel STEHULE <pavel.stehule@gmail.com> 1.0.4-1 |
| 168 | +- support for PostgreSQL 9.6 |
| 169 | + |
| 170 | +* Mon Oct 12 2015 - Pavel STEHULE <pavel.stehule@gmail.com> 1.0.3-1 |
| 171 | +- fix false alarms of unused cursor variables |
| 172 | +- fix regress tests |
| 173 | + |
| 174 | +* Thu Jul 09 2015 - Pavel STEHULE <pavel.stehule@gmail.com> 1.0.2-2 |
| 175 | +- bugfix release |
| 176 | + |
| 177 | +* Fri Dec 19 2014 - Pavel STEHULE <pavel.stehule@gmail.com> 0.9.3-1 |
| 178 | +- fix a broken record field type checking |
| 179 | +- add check for assign to array field |
| 180 | + |
| 181 | +* Mon Aug 25 2014 - Pavel STEHULE <pavel.stehule@gmail.com> 0.9.1-1 |
| 182 | +- Initial packaging |
0 commit comments