Comments (1)
https://github.com/2ndQuadrant/mysqlcompat/blob/master/sql_bits/information.sql
-- BENCHMARK()
-- Note: This version requires the expression to be quoted.
-- Note: To show query times in psql, run \timing first
-- Example: SELECT BENCHMARK(100000, $$ length('hello') $$);
CREATE OR REPLACE FUNCTION benchmark(integer, text)
RETURNS integer AS $$
BEGIN
FOR i IN 1..$1 LOOP
EXECUTE 'SELECT ' || $2;
END LOOP;
RETURN 0;
END;
$$ STRICT LANGUAGE PLPGSQL;
from postgresql-patterns-library.
Related Issues (7)
- csv_parse() incorrect parse some data
- is_sql() для кода loop_execute() выдаёт ошибку
- DDL_log_to_table: [0A000] ERROR: DROP INDEX CONCURRENTLY must be first action in transaction
- benchmark(): добавить альтернативную реализацию функции
- `check_foreign_key_array()`: добавить ещё одну реализацию
- Журналировать запросы, терминированные из `pg_terminate_backend_*.sql`
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from postgresql-patterns-library.