小编Jul*_*che的帖子

如何在Linux上获取android-support-v4.jar文件(来自Android支持库)?

阅读" 导入android.support无法解析 "我可以看到我需要一个名为的文件android-support-v4.jar.阅读http://developer.android.com/tools/support-library/setup.html我可以看到我需要SDK Manager.但是我在哪里可以获得该文件?

linux android

11
推荐指数
3
解决办法
4万
查看次数

当出现“TimeoutError: waiting for Page.printToPDF failed”时,如何增加 pupetteer 的 Page.pdf 的超时时间?

当尝试将大发票转换为 PDF 时,我收到“TimeoutError: waiting for Page.printToPDF failed”:

Unhandled Rejection at: Promise Promise { <rejected>
 TimeoutError: waiting for Page.printToPDF failed: timeout 30000ms exceeded                                                      

  at Object.waitWithTimeout (/var/www/montbeau/releases/20210929161149/node_modules/puppeteer/lib/cjs/puppeteer/common/helper.js:224:26)

  at Page.createPDFStream (/var/www/montbeau/releases/20210929161149/node_modules/puppeteer/lib/cjs/puppeteer/common/Page.js:2045:49)

  at Page.pdf (/var/www/montbeau/releases/20210929161149/node_modules/puppeteer/lib/cjs/puppeteer/common/Page.js:2057:37)

  at /var/www/montbeau/releases/20210929161149/scripts/invoice_to_pdf.js:175:20

  at runMicrotasks (<anonymous>)                                                                                                                                                                                          
  at processTicksAndRejections (internal/process/task_queues.js:97:5)                                
  } reason: TimeoutError: waiting for Page.printToPDF failed: timeout
  30000ms exceeded                                                      

at Object.waitWithTimeout (/var/www/montbeau/releases/20210929161149/node_modules/puppeteer/lib/cjs/puppeteer/common/helper.js:224:26)

at Page.createPDFStream (/var/www/montbeau/releases/20210929161149/node_modules/puppeteer/lib/cjs/puppeteer/common/Page.js:2045:49)

at Page.pdf (/var/www/montbeau/releases/20210929161149/node_modules/puppeteer/lib/cjs/puppeteer/common/Page.js:2057:37)

at /var/www/montbeau/releases/20210929161149/scripts/invoice_to_pdf.js:175:20...
Run Code Online (Sandbox Code Playgroud)

如何增加超时时间?

puppeteer

7
推荐指数
1
解决办法
6562
查看次数

查找 postgres 9 中哪些行或列正在使用 TOAST(并减少 TOAST uasge)?

我继承了一个具有大得离谱的 TOAST 表的系统的维护工作。对于大约 400 MB 的表和索引大小,toast 为 631 GB

clientportal=# SELECT oid, table_schema, table_name,                                                                                        
    total_bytes,
    pg_size_pretty(total_bytes) AS total
    , pg_size_pretty(index_bytes) AS INDEX
    , pg_size_pretty(toast_bytes) AS toast
    , pg_size_pretty(table_bytes) AS TABLE
  FROM (
  SELECT *, total_bytes-index_bytes-COALESCE(toast_bytes,0) AS table_bytes FROM (
      SELECT c.oid,nspname AS table_schema, relname AS TABLE_NAME
              , c.reltuples AS row_estimate
              , pg_total_relation_size(c.oid) AS total_bytes
              , pg_indexes_size(c.oid) AS index_bytes
              , pg_total_relation_size(reltoastrelid) AS toast_bytes
          FROM pg_class c
          LEFT JOIN pg_namespace n ON n.oid = c.relnamespace
          WHERE relkind = 'r'
  ) a …
Run Code Online (Sandbox Code Playgroud)

postgresql postgresql-9.6

5
推荐指数
1
解决办法
2862
查看次数

标签 统计

android ×1

linux ×1

postgresql ×1

postgresql-9.6 ×1

puppeteer ×1