Skip to content

Instantly share code, notes, and snippets.

View msdousti's full-sized avatar

Sadeq Dousti msdousti

View GitHub Profile
import http from 'k6/http';
export const options = {
vus: 100,
// iterations: 1000,
duration: '30s',
thresholds: {
http_req_failed: [{
threshold: 'rate<0.2',
package main
import (
"fmt"
"math/rand"
"net/http"
"time"
)
func hello(w http.ResponseWriter, req *http.Request) {
SELECT
c.relname,
a.grantor::regrole,
a.grantee::regrole,
c.relowner::regrole,
array_agg(a.privilege_type ORDER BY a.privilege_type) AS privileges
FROM
pg_class c
JOIN pg_namespace n ON c.relnamespace = n.oid
LEFT JOIN aclexplode(c.relacl) AS a ON TRUE